Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by dariusk

I made a very simple Mario-style demo.

http://tinysubversions.com/impact/Platformer/

http://tinysubversions.com/impact/Platformer/lib/game/entities/dynamicActor.js
http://tinysubversions.com/impact/Platformer/lib/game/entities/enemy.js
http://tinysubversions.com/impact/Platformer/lib/game/entities/player.js

I got the Mario-style variable jump working from this article: http://flashgamedojo.com/wiki/index.php?title=Mario_style_jumping(Flixel)

Ground tiles and enemy are from pgil: http://forums.tigsource.com/index.php?topic=8796.0, enemy slightly modified by me
The player sprite is by Naruto[NU]: http://www.spriters-resource.com/custom_edited/mother/sheet/17317, slightly modified by me

1 decade ago by dominic

Wow, looks awesome already. Thanks for sharing!

One suggestion though: Make the size.x of the Player a bit smaller. Maybe set it to 24 and then give the entity an offset.x of 4 to center the "collision box" on the sprite again. As it is right now, the Player can walk a few pixels over the edge of a platform without falling down.


I will try to prepare a small demo for a Jump'n'Run later today, too. Probably a stripped down version of Biolab Disaster.

1 decade ago by dariusk

Good suggestion, fixed!

1 decade ago by dariusk

Updated it with a camera that follows the player and accepts arbitrary top/bottom/left/right camera panning buffers as well.

I based it off the "camera with dead zone" code I wrote and explain in this tutorial: http://bostongamejams.com/akihabara-tutorials/akihabara-tutorial-part-4-scrolling-map/
Page 1 of 1
« first « previous next › last »