some new try in basic

By Lord_Zett

Paladin (807)

Lord_Zett's picture

11-08-2016, 19:41

made some road fx inc scrolling horizon
first whitout gfx and the basics of it
KLIK
after that some gfx on it in sc1 and more animations when cornering
KLIK
thanks BiFi for your help!

Login or register to post comments

By Kai Magazine

Paragon (1423)

Kai Magazine's picture

11-08-2016, 20:06

Nice!
Try to add turbo basic (xbasic, basic kun) to add more speed, and a copule of color swapping to create an animation to add more movement to the road when it is still, without barely any cpu cost Wink

By Lord_Zett

Paladin (807)

Lord_Zett's picture

11-08-2016, 20:08

na there is now no cpu cost. its just the movement of the road is only the corners implemented. the res is not done yet. its fast in just basic. and msx1

By Kai Magazine

Paragon (1423)

Kai Magazine's picture

11-08-2016, 20:23

well, MSX basic is an interpreter, so every time a command is executed, first it has to be interpreted to ASM, every time, every frame. If you have to do 30 operations per frame, those 30 operations are converted to asm each frame, so there is a huge cpu cost already.
Xbasic is a compiler, so all the instructions or commands are converted to ASM just once, thus making the msx basic programs run 10 to 30 times faster.
Just try it.

By ericb59

Paragon (1098)

ericb59's picture

12-08-2016, 08:32

Kai Magazine wrote:

well, MSX basic is an interpreter, so every time a command is executed, first it has to be interpreted to ASM, every time, every frame. If you have to do 30 operations per frame, those 30 operations are converted to asm each frame, so there is a huge cpu cost already.
Xbasic is a compiler, so all the instructions or commands are converted to ASM just once, thus making the msx basic programs run 10 to 30 times faster.
Just try it.

Well... the turbo blocks are compiled each time they are called. Compilation, take time, this is not always the best solution... I thinK.

By Kai Magazine

Paragon (1423)

Kai Magazine's picture

12-08-2016, 11:15

If used properly, anyone can do quite amazing things.
For an arcade, you should put everything inside 1 single turbo block (life on mars, no name, nuts, sector88).
For an RPG you can use very small turbo blocks (rune monster)

None of those games would be possible in plain basic because those run too slow on basic.

By DarkSchneider

Paladin (965)

DarkSchneider's picture

16-08-2016, 12:39

The gameplay loop should be within a turbo block without doubt. Some delay to start, but great increase of speed for every frame.