Hi all,
After my first tests with a bouncing sprite and some pattern table scrolling in screen 1 I have now started writing my first (simple) game in assembly. It's going to be a simple run ad jump game like the dinosaur game in Chrome.
What I want is:
- an animated character that can jump variable heights
- a score and a highscore visible on screen
- a few random chosen different moving obstacles to jump over or run under
- an increasing speed for the obstacles, determined by the score
- some obstacles that only appear at a certain minimum score
- sound effects for walking, jumping, scoring points and crashing into an obstacle
- an intro tune before the game starts and an outro tune when the game is over
The first thing I've done is writing a test for letting my character jump:
https://msxpen.com/codes/-MaMlna6aeEs6ekh9ic8
Pressing the spacebar makes the character jump. A longer press makes the character jump higher to a certain maximum. I've implemented gravity for a smooth jump.
This time I've put my game logic in a main loop and only the update of the sprite(s) in the timer hook.
I've created a flag that is set every time the timer hook runs. I use this for 'timed instructions' in my main loop so that the test runs at a fixed speed.
I wonder what your thoughts are about this first experiment. Next thing I am testing is a scrolling floor using pattern tables that can scroll at a variable speed.