Page 1 of 1
Little shooting game
Posted: Mon Dec 12, 2016 1:36 pm
by xNick1
Hi guys,
I took an example on the internet and added a few features to a little shooting game.
I used an object oriented library called "classic".
Is it any good?
Do you notice any flaws in the code?
Do you recommend the object oriented approach? Why?
Re: Little shooting game
Posted: Mon Dec 12, 2016 3:57 pm
by xNick1
new version:
now there's a high score visible in the main menu
sorry for deleting the post and then posting again, there was a bug in my code
Re: Little shooting game
Posted: Mon Dec 12, 2016 5:03 pm
by evgiz
xNick1 wrote:
I used an object oriented library called "classic".
Is it any good?
Do you notice any flaws in the code?
Do you recommend the object oriented approach? Why?
Loads of questions here. I haven't used classic myself, but from what I can tell its a fairly simple OO library. I use 30log but frankly I dont think it matters all that much. Use whatever you're comfortable with.
I probably use OO a bit too much, but its very useful in many situations. For instance in a game, representing entities with classes and objects can be very helpful. Again, I'd say do what you're comfortable with. I recommend a combination of OO and procedural programming.
xNick1 wrote:
sorry for deleting the post and then posting again, there was a bug in my code
You don't have to delete your post, you can edit it and upload the new file.
Good luck on your programming!
Re: Little shooting game
Posted: Mon Dec 12, 2016 6:59 pm
by xNick1
evgiz wrote:xNick1 wrote:
I used an object oriented library called "classic".
Is it any good?
Do you notice any flaws in the code?
Do you recommend the object oriented approach? Why?
Loads of questions here. I haven't used classic myself, but from what I can tell its a fairly simple OO library. I use 30log but frankly I dont think it matters all that much. Use whatever you're comfortable with.
I probably use OO a bit too much, but its very useful in many situations. For instance in a game, representing entities with classes and objects can be very helpful. Again, I'd say do what you're comfortable with. I recommend a combination of OO and procedural programming.
xNick1 wrote:
sorry for deleting the post and then posting again, there was a bug in my code
You don't have to delete your post, you can edit it and upload the new file.
Good luck on your programming!
Yeah I know, everyone uses different libraries.
This is just one of my first attempts, classic is the first OO library I've ever used.
I found a tutorial about it, so I picked that one for the game.
But I guess I'll find the right tools for me as the time goes on.
I'll take a look at 30log then.
Thank you =)
The same goes for me, the more OO it is, the better for me
Re: Little shooting game
Posted: Tue Dec 13, 2016 1:43 pm
by xNick1
Updated with the spawning of a random enemy instead of the same one everytime.
I'm trying to figure out how to make you choose it from the menu :/
Here's the updated game:
Re: Little shooting game
Posted: Tue Dec 13, 2016 9:01 pm
by xNick1
Little update.
Fixed a bug and the game is now organized better
Feel free to give me suggestions about how to organize the code better
Re: Little shooting game
Posted: Wed Dec 14, 2016 10:01 am
by xNick1
Updated version:
You can now choose the enemy from the menu
Re: Little shooting game
Posted: Thu Dec 15, 2016 8:14 pm
by xNick1
Reorganized the code a little, new feature in the game.