Little shooting game

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Little shooting game

Post 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?
xNick Panda.love
(65.28 KiB) Downloaded 245 times
Last edited by xNick1 on Mon Dec 12, 2016 3:26 pm, edited 1 time in total.
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Little shooting game

Post by xNick1 »

new version:
xNick Panda.love
(65.28 KiB) Downloaded 205 times
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
User avatar
evgiz
Citizen
Posts: 83
Joined: Mon Aug 29, 2016 11:05 pm
Contact:

Re: Little shooting game

Post 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!
Computer science student and part time game dev! Currently working on Depths of Limbo! :cool:

Check out the game website DepthsOfLimbo.com! :ultrahappy:
And my personal website with all my projects evgiz.net! :megagrin:
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Little shooting game

Post 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 :D
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Little shooting game

Post 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:
xNick Panda.love
(128.01 KiB) Downloaded 156 times
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Little shooting game

Post by xNick1 »

Little update.
Fixed a bug and the game is now organized better :D
Feel free to give me suggestions about how to organize the code better

xNick Panda.love
(128.62 KiB) Downloaded 173 times
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Little shooting game

Post by xNick1 »

Updated version:
xNick Panda.love
(128.97 KiB) Downloaded 168 times
You can now choose the enemy from the menu
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Little shooting game

Post by xNick1 »

Reorganized the code a little, new feature in the game.
xNick Panda.love
(130.86 KiB) Downloaded 175 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests