some new try in basic
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
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
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, 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.
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.
The gameplay loop should be within a turbo block without doubt. Some delay to start, but great increase of speed for every frame.
