Try Not to Lose (Journey)
I wanted to learn about math and shader programming in game, so I started to read some tutorials on cat like coding website. On one section of this website, I learned about CPU and GPU communication by compute shader, so I made this game to reinforce what I ‘ve learned from there and also to illustrate this communication.
What inspired me to make this game:
- First of all, it was CPU and GPU communication that inspired me to make such a game.
- I was eager to calculate a ratio between values that I send to CPU and values that I send to GPU to make an actual game.
(As you can see, in the game, GPU is responsible for the visualization of the green area and the CPU is responsible to watch that the player crosses the area or not. As the green area changes by each click, I should manage to make a ratio between the values that I’m sending to GPU and the values that I’m sending to CPU)
What was my goal to make this game
- My goal was to get more familiar with this CPU and GPU communication, figuring out how it can be used in a game.
- Although this game is quite small, I feel like that I got a sight on how it is going to come in handy for a bigger game.
How long it took me to finish the game
After I made a couple of projects on cat like coding website and learned a bit about compute shader programing, it took me almost 1 day to finish it.
What I have learned from making this game
Well, I got familiar with compute shader programing and the way it can help me to write code on GPU.
After that I learned about a way to communicate between CPU and GPU.