Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Day 2 - Wall climbing

A mechanic I decided to add is to simply do wall climbing sort of megaman x style but while also being affected by the gravity and falling velocity of your ice cream mass.

I'm going to briefly explain how I did it.

Sticking to walls:
Added 2 fixture sensors to the sides of the player, actually only 1 is "active" at the time depending if he's facing left or right (I simply destroy and create the fixture). When the thing is against a wall and the player is not on ground you can stick by pressing towards the wall. When the conditions are met a force is applied against the wall making the player stuck but is also affected by gravity and it's velocity, so if you're falling fast you won't be able to hang on it.

Wall jumping:
Another force that I apply to bounce off the wall and a little upward, so while on air you can maneuver. Had to refactor input logic to use an adapter, less spagghetti, less mindfuck...

Misc:
Added the sprite that marccio made (thank you!) with sliding and idle animation, probably not final yet.

Next I'll be sketching some enemies to use, lots of things to do in order to cook this thing up, but it's nice to be learning while doing it :)

Github - Ice Cream Overlord