Ludum Dare #56compo
Ant Ascent: journey to the top
A simple platformer game where you are an ant trying to get to the top of the tree to get the ultimate nectar for you colony
A/S or right/left arrow key to move
W or up arrow key to jump
A/S or right/left arrow key to move
W or up arrow key to jump
Comments24
Missed sound - would have loved music and some effects. Also similar to ellaris I could sometimes jump through blocks, and a few times I fell through them.
data rather than hard-coding the dimensions of each platform. You can do it by
looping over `boards` similar to how you loop over it when drawing the
tiles to the screen.
Additionally, when you do detect a collision, you should reverse the player
movement that triggered the collision. For example:
```py
self.rect.y += self.yvelocity
if self.is_colliding_with_terrain():
self.rect.y -= self.yvelocity
self.yvelocity = 0
self.rect.x += self.xvelocity
if self.is_colliding_with_terrain():
self.rect.x -= self.xvelocity
self.xvelocity = 0
```
There are more advanced things you can do to improve movement/collision but something like the above should fix the "phasing through platforms" issues people are seeing.
The colliders are a bit wonky but another than very good :D
@itstimothy999 for sound effects I normally set aside 30m to record myself either making weird mouth sounds into a microphone or hitting things into other things. Eventually I get a few sounds I like. My music skills are terrible I just noodle around on a super cheap second hand keyboard.
I'm sure there's programs that could chip-tune something out pretty quick.. including some crunchy NES style sound effects..