Okay, so today I decided to mess around with something completely new to me – making a hockey game. I’ve always been a huge hockey fan, and I figured, why not try to build something, even if it’s super basic? I’m calling it “David Ma Hockey” for now, just because.
Getting Started
First, I needed to figure out what I was even doing. I’ve never coded a game before, I googled some and watched some videos for the basic concept.
I knew i wanted a simple top view, with a player that can move and hit the puck.
The Basic Setup
- Creating Players: Started with a rectangle for my player character.
- Basic movement: Then i tried to made it move! i figured out how to get it to go up, down, left, and right with the arrow keys. It felt clunky, but hey, it moved!
Adding the Puck
Next up, the puck! I add a simple circle.
- Puck Physics: I spent way to long here, trying to get the puck bounce off the wall and my player. It kinda worked, but it felt more like a lucky shot than actual physics.
The First “Game”
I tired to played it, I could move my character and swat at the * will bounce to the other side, and sometimes bounce to the left or right, but it’s all random.
Where to Go From Here
I know it is very simple, but it’s a start. I’m thinking about adding an opponent next, maybe even some very, very simple AI. Then some goals, and a score.