Writing my first (simple) game in assembly

Page 3/5
1 | 2 | | 4 | 5

By Pbk71

Expert (101)

Pbk71's picture

26-05-2021, 08:45

Daemos wrote:

Looking awesome. I cannot help but to notice that the jump key is not limited. As soon as you touch the ground you jump back up again. There is a little snippet of code you can use to make that feel very smooth.

Good point, I've implemented it an a different way with a flag byte here: https://msxpen.com/codes/-MabPcjgHMZGYx2yZJnK

By Daemos

Paragon (1958)

Daemos's picture

26-05-2021, 11:17

Difficulty setting to the max but if you dare try this. Your gravity is pulling at equal speed with low or high jumps. What you can do is create to fall tables. One that is used when the jumpbutton was pressed shortly and one when you are jumping high. Like that falling acceleration goes faster when jumping gently and slower when you are really high up. Smoothness 200% Wink

By Pbk71

Expert (101)

Pbk71's picture

26-05-2021, 12:08

Daemos wrote:

Difficulty setting to the max but if you dare try this. Your gravity is pulling at equal speed with low or high jumps. What you can do is create to fall tables. One that is used when the jumpbutton was pressed shortly and one when you are jumping high. Like that falling acceleration goes faster when jumping gently and slower when you are really high up. Smoothness 200% Wink

Good tip. A quick try gives me this result: https://msxpen.com/codes/-Mac87w_hOkKxj11uVWG

By Daemos

Paragon (1958)

Daemos's picture

26-05-2021, 17:35

Starting to get a good feel. The high jumps are a little bit too delayed now but thats trial and error with the jump tables. Its really starting to feel awesome.

By Pbk71

Expert (101)

Pbk71's picture

26-05-2021, 19:08

That indeeds needs work. I've been experimenting with collision checking, displaying a score and a highscore and now it's sort of a playable game. Keep in mind that this still is just an experiment. All this code needs to be cleaned up and my real game will be build using Sjasm where I use includefiles and so on.

But.. even although it's an experiment... it's my first actual game written in assembly! Big smile

See here what is is now: https://msxpen.com/codes/-MadcFh4uMOz9ff3L1HP

By santiontanon

Paragon (1569)

santiontanon's picture

26-05-2021, 19:54

Wow, congrats, that was very fast! It took me way longer to get my first game finished in assembler Smile

By ToriHino

Paladin (741)

ToriHino's picture

26-05-2021, 21:06

Nice, in this tempo it looks you'll be ready to submit for MSXDdev21 already Cool

By Pbk71

Expert (101)

Pbk71's picture

27-05-2021, 17:39

ToriHino wrote:

Nice, in this tempo it looks you'll be ready to submit for MSXDdev21 already Cool

Hmm... Will take a lot of time to turn this in a good game. I think that gameplay is really important.
It needs to start easy but not to easy and then is should gradually get harder and add extra difficulties.

By JohnHassink

Ambassador (5596)

JohnHassink's picture

27-05-2021, 18:22

You're doing quite swell, anyway! Cool
Fascinating to see how fast you have progressed.
Best of luck!

By Daemos

Paragon (1958)

Daemos's picture

27-05-2021, 18:38

Damn you are progressing fast! Its starting become a game

Page 3/5
1 | 2 | | 4 | 5