First of all you need a reason to code. You can’t just say I want to learn to code – and then be able to code. It’s mis-targetted. You need to think about WHAT you want to code.
You want to code a game? Cool. What type of game? You want to make a game like COD? Scope down, aim for a simple game. Aim for something simple first, then build up. Maybe a Mario style game?
So you want to set yourself a number of targets – and don’t aim to rush through each one. Teach yourself how to learn. The internet will tell you everything – it’s all there – you’re the only thing holding you back.
- Decide on a programming language (you’re new – use Love for now)
- Make a simple game that just draws the screen a certain colour.
- Draw a square on the screen.
- Draw a sprite on the screen (mario).
- Make the sprite move when you press a key.
- Make the sprite move with velocity when you press a key (and slow down when you loose it).
- Add constant velocity to the sprite downwards (gravity)
- If the sprite is at the bottom of the screen, don’t add velocity – and don’t let it go lower than the bottom of the screen.
- Add vertical velocity when jump is pressed.
There you go – you just made a basic little Mario game. Now just add real collisions, enemies, coins and a level editor – and you’re all good :)