I recommend everyone to do so once in a while it's nicely codedĪnd there's lots of stuff to learn from there. To make those I had to explore a lot of the melonJS' source code. Finally, I made three different types of platforms: a regular platform (when you step on it, it blocks your way), a vanishing platform (that disappears after a while when you step on it - used me.Tween for animation) and a movable platform (that moves according to a specified area on Tiled - both horizontal and vertical).So, for example, instead of placing spike by spike you can create a large area and it would have lots of spikes - less entities means more performance! I created a little class called RepeatableSpriteObject that extends SpriteObject with it you can create entities on Tiled that repeat a sprite along it's area.Now a challenge would be the opposite - holding Shift to make it run. It's a simple feature that's also simple to implement. On this commit I made the player able to walk slowly when you hold Shift.They're thoroughly commented and, as usual, you can freely use I just implemented a couple of things you might find interesting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |