T
tomster785
Guest
So I've always wanted to make games, and have always been stopped by the hurdling of actually learning how to program. I can make art, sound and music to varying degrees of success, I also watch channels on youtube like extra credits and stuff to learn about design too, but my biggest hurdle is programming.
Anyway, I decided to finally make amends to that and begin by loosely following tutorials and making my own versions of old arcade and early console classics. I'm gonna work my way up, so I started with asteroids. For no other reason than Shaun Spalding did a tutorial on it that was text and not a video and I much prefer text.
Anyway, I would like some critique on my code in order to improve it in anyway and to correct any bad habits I may be already learning. I already know a little bit of code, as I've attempted this several times and have made various versions of pong, breakout, pacman, etc on this or unity. So I have a rough understanding of what I'm doing. But not nearly as tight a grasp as I would like.
I intend on polishing this too, make a menu, fix bugs and all that sort of stuff. I assume that's important to learn from the get go. I learnt from making music that finishing something is much harder than starting it. But I want to make sure there's nothing I need to iron out first.
The code I used to generate new asteroids when you destroy all the ones on screen is probably terrible and I don't like how close they can spawn to the player sometimes. You just die from an unlucky spawn at times. Also I don't think the player moves and rotates fast enough. But I'd like opinions on these matters and anything else that comes to mind.
Here's the demo:
http://www.mediafire.com/file/74nnhvwpn2f85d7/Asteroids.gmx.7z
And here's a screenshot:
There's not really much to show to be honest, it's asteroids, but the rules said I had to post a screenshot aha.
Thank you in advance if anybody actually sifts through my ty code.
Anyway, I decided to finally make amends to that and begin by loosely following tutorials and making my own versions of old arcade and early console classics. I'm gonna work my way up, so I started with asteroids. For no other reason than Shaun Spalding did a tutorial on it that was text and not a video and I much prefer text.
Anyway, I would like some critique on my code in order to improve it in anyway and to correct any bad habits I may be already learning. I already know a little bit of code, as I've attempted this several times and have made various versions of pong, breakout, pacman, etc on this or unity. So I have a rough understanding of what I'm doing. But not nearly as tight a grasp as I would like.
I intend on polishing this too, make a menu, fix bugs and all that sort of stuff. I assume that's important to learn from the get go. I learnt from making music that finishing something is much harder than starting it. But I want to make sure there's nothing I need to iron out first.
The code I used to generate new asteroids when you destroy all the ones on screen is probably terrible and I don't like how close they can spawn to the player sometimes. You just die from an unlucky spawn at times. Also I don't think the player moves and rotates fast enough. But I'd like opinions on these matters and anything else that comes to mind.
Here's the demo:
http://www.mediafire.com/file/74nnhvwpn2f85d7/Asteroids.gmx.7z
And here's a screenshot:
There's not really much to show to be honest, it's asteroids, but the rules said I had to post a screenshot aha.
Thank you in advance if anybody actually sifts through my ty code.