Updates‎ > ‎

Acceleration and Gravity complete... Traversal of slopes is next!

posted May 28, 2010, 12:57 AM by T. J. Chapman   [ updated May 28, 2010, 1:16 AM ]
    So yeah, the title pretty much says it all. The player has a slight acceleration to velocity on the x axis. This will be useful for future enemies and such... with varying degrees of acceleration and max speed, there will be more options for enemies. Also, now jumping and gravity is complete, and works flawlessly -- I'm very pleased with how well it turned out. The character's jump height and jump force are variable, which allows me to create enemies in the future that jump differently than the main character. The main character's movement will be the base for many of the enemies in the game. The entire game's gravity is variable as well, and it will effect all objects in the same way, with the same force, as in real life (gravity has the same effect on all objects, no matter the mass).

    Now, with functioning jumping, acceleration, player movement and controls, and perfect collision detection, I am now working on getting the player to move up and down slopes seamlessly, so as to keep the character's movement flowing with the terrain-- without modification, the character, when running right, would collide with a slope and stop, as he couldn't move right anymore. When I get it working correctly, the character will run up the slope as one would in real life with a gradual terrain change-- you wouldn't jump up it. Once this is done, basic player movement will be complete. I'll post a video of the basic player movement once it's working properly.

Oh, also, kind of a big deal-- I have decided to up the default resolution in my game to 480p, 640x480. This will require more detailed graphics and more processing power in a computer (1 Ghz instead of 400 Mhz for full graphical quality), although I have implemented methods that shrink the graphics down at runtime and can still play the game perfectly (and even on a 400 Mhz PC) on resolutions as low as 400x300, or even 320x240. Here is a comparison of the main character before the resolution doubled, and after the resolution doubled:
Note that there is room for much more detail now.

Here is a screenshot of the game in it's current state:

Anyhow, yes, working on slope traversal now. Video to follow.

Until then,
- Falcon Five
ą
T. J. Chapman,
May 28, 2010, 1:13 AM
ą
game.jpg
(31k)
T. J. Chapman,
May 28, 2010, 1:14 AM
Comments