First LOVE Project

Show off your games, demos and other (playable) creations.
Post Reply

Quality of Code for First Project LOOK AT CODE FIRST

Great!
1
17%
Good...
3
50%
Average...
1
17%
Not great...
0
No votes
Horrid!
1
17%
Repulsive!
0
No votes
Absolutely DISGUSTING!
0
No votes
Wow. It seems as if a 2-year-old could have written this with his face, drooling on the keyboard.
0
No votes
 
Total votes: 6

User avatar
InsertCoolUsername
Prole
Posts: 1
Joined: Fri Feb 25, 2011 2:55 am

First LOVE Project

Post by InsertCoolUsername »

I am an avid 11 year-old Scratch/Panther (Scratch modification) user, and I just recently started using Lua, and LOVE. I spent a few hours today making a small game, and I would like some feedback on it.

It is a small game where you are a ship, and you fly left-and-right, blasting away at an enemy. Sounds exciting, right? My game ruins it. I tried to make a timer, but I was having some trouble using threading (If I could receive some help here, it would be great.). The system of scoring is more endurance, as you must shoot the enemy as much as possible before getting bored.

You can't judge it by quality, can you...

Also, if you are going to recommend something, please keep it small and simple. No "A 3-D engine would be nice." Please look at the code first, as well.

Thank you.
Attachments
Pseudo-Finished Pseudo-Game.love
(2.29 KiB) Downloaded 732 times
User avatar
crow
Party member
Posts: 186
Joined: Thu Feb 24, 2011 11:47 pm
Location: UK
Contact:

Re: First LOVE Project

Post by crow »

You need to get it to become harder, and maybe have your beem to have a power limit so it can't stay on all the time but its a good start :neko:
Sir Kittenface
Möko IDE Codename (Erös) Returns Soon

I am dyslexic so if any of my replys confusing please just ask me to reword it as this will make things a lot easier for all parties lol.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: First LOVE Project

Post by Taehl »

Random things I think of when reading your code:
- Ew, commented-out code. Not cool for a release.
- Personally, I would treat the player-character as an object - make it a table which contains its data (such as x)
- You don't need a boltx if boltx always equals x. Instead of drawing it off the screen when it's off, just don't draw it at all.
- Your indenting is good. Nice work.
- You should ensure the player-character can't go off the screen. Always let the player see themself, unless it's a cutscene!

So, not horrible code, especially for a beginner. But those graphics! :death:
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
Motig
Prole
Posts: 28
Joined: Fri Oct 15, 2010 3:43 am

Re: First LOVE Project

Post by Motig »

You may want to check out http://love2d.org/wiki/Tutorial:Hamster_Ball for a better way to handle movement of the player. Right now your player(ship) moves at different speeds on different computers because love.update() will get called more often on fast computer but less often on a slower computer.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: First LOVE Project

Post by TechnoCat »

Motig wrote:You may want to check out http://love2d.org/wiki/Tutorial:Hamster_Ball for a better way to handle movement of the player. Right now your player(ship) moves at different speeds on different computers because love.update() will get called more often on fast computer but less often on a slower computer.
Yeah, it moves at the speed of light on mine.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: First LOVE Project

Post by Robin »

Pretty good for a beginner, especially such a young one.

Most of the things I wanted to say, the others have said already.

One thing: if you hold space, and go from left to right, you can sweep the screen clean, it will become very easy that way. Can you think of a way to prevent that? (Not necessarily in code, just putting it into words can help you further).
Help us help you: attach a .love.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: First LOVE Project

Post by BlackBulletIV »

Good stuff.

About the comments, I suggest removing the old way you did things, rather than leaving them there as comments. But congratulations on the indenting, it's mighty important.
InsertCoolUsername wrote:No "A 3-D engine would be nice."
Don't worry about that here, this is a 2D engine. There are some making 3D engines in Love, but that's relatively rare.
User avatar
FinalSin
Prole
Posts: 16
Joined: Tue Dec 14, 2010 3:09 pm

Re: First LOVE Project

Post by FinalSin »

I think it's got everything your first game needs. You've tried a bit of the lot. Well done!

I got pretty bummed out that my games were all using default art, so I used TIGsource's amazing Assemblee stuff to make my games look prettier when developing. It's all here:

http://www.derekyu.com/tigs/assemblee/

Free art and music. Look up the drawq functions in Love for how to use the spritesheets.
Post Reply

Who is online

Users browsing this forum: No registered users and 176 guests