Page 1 of 2

Asteroid Per Outro - Simple Game to my studies

Posted: Mon Mar 28, 2016 9:09 am
by modog
I made that little game to can working better with lua/love2d, my hope it is complete the project. I want you people tell what a add to the project and maybe tell me how i make something then complete the project. For I finishing: Some one tell me how I can restart the game in the end.

Image https://love2d.org/imgmirrur/2Ij6OO6.jpg

Moviment: Arrow keys
Shoot: X

:cool:

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Mon Mar 28, 2016 11:58 am
by Luke100000
modog wrote:I made that little game to can working better with lua/love2d, my hope it is complete the project. I want you people tell what a add to the project and maybe tell me how i make something then complete the project. For I finishing: Some one tell me how I can restart the game in the end.

Image https://love2d.org/imgmirrur/2Ij6OO6.jpg

:cool:
Hello,

I made v0.0.2 by accident :) I just wanted to check the code to tell you a possible solution to restart the game, but I found some small bugs and I had to fix them. I also added waves.

To restart the game I made a function which reset all vars. That's all.
Asteroid Per Outro v.0.0.2.love
(1.05 MiB) Downloaded 352 times
I hope you can learn something from it :3

changelog:
added restart button
added waves
fixed explosion sound when hitting too fast in a row
fixed high of enemies
game now uses deltatime
recreate game over message

ideas
more types of enemies (more health, faster, moves around, ...)
enemies can shoot (already in progess I think)
points
effects like explosions
boss battle

bugs
player should start in the middle
player can move out the screen

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Mon Mar 28, 2016 4:18 pm
by Sulunia
Well, i had to look into the source code to figure out how to shoot. XD
Also, the restart didn't work for me. It just does absolutely nothing.

But looks good for an exercise. I suggest you try adding effects now, like particles, tweening...

<br>(Also, -- As bala da 38 do cara? Eu não vi cara nenhum mano HAHEUA)</br>

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Tue Mar 29, 2016 1:00 am
by modog
@Luke100000 Thanks mate! I played for see how looks now, but I don't see the code yet, I wanna see the code and try fix somethings, maybe adding effects on screen or in the characters.


[PT-BR]
@Sulunia AHSEUAUHSE Fica mais fácil de lembrar. Cara = Nave Azul. And sorry for I dont tell how shoot in the game. xD

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Tue Mar 29, 2016 2:36 pm
by Ref
Replay not working because wrong key code used.

Code: Select all

if game.over or game.win and key == ' ' then restart() end
should be:

Code: Select all

if game.over or game.win and key == 'space' then restart() end
A change related to latest version of Love.

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Tue Mar 29, 2016 3:05 pm
by Luke100000
Ref wrote:Replay not working because wrong key code used.

Code: Select all

if game.over or game.win and key == ' ' then restart() end
should be:

Code: Select all

if game.over or game.win and key == 'space' then restart() end
A change related to latest version of Love.
oh, I made it for version 0.9.2 :3

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Tue Mar 29, 2016 3:32 pm
by Nixola
You should start using 0.10.1, there's pretty much no reason to stay behind.

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Tue Mar 29, 2016 6:55 pm
by Luke100000
Nixola wrote:You should start using 0.10.1, there's pretty much no reason to stay behind.
A lot of things have been changed and I need to update all my games. I'm too lazy to do that. Someday maybe.

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Wed Mar 30, 2016 2:09 am
by modog
Ref wrote:Replay not working because wrong key code used.

Code: Select all

if game.over or game.win and key == ' ' then restart() end
should be:

Code: Select all

if game.over or game.win and key == 'space' then restart() end
A change related to latest version of Love.
I just resolved that. I'm writing and testing something to adding the project, a some time I post here.

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Wed Mar 30, 2016 5:24 am
by modog
Please, some one have a good place to learn better Love2D?

Log
- I try to adding particle system, but the particles dont show in the enemy place when enemy dies.