W A-S-D
Simple example of a platformer game with variable level and coins. You can add level and coin easily. Each level can have its own coins with the position and state is kept with the level. The movement of the player is also smooth.