Asteroid Per Outro - Simple Game to my studies

Show off your games, demos and other (playable) creations.
User avatar
modog
Prole
Posts: 17
Joined: Sun Mar 27, 2016 1:20 am

Asteroid Per Outro - Simple Game to my studies

Post 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:
Attachments
Asteroid Per Outro v.0.0.1.love
(1.07 MiB) Downloaded 392 times
Last edited by modog on Tue Mar 29, 2016 1:02 am, edited 1 time in total.
:emo: lua-chan falling in love with löve-senpai :neko:
User avatar
Luke100000
Party member
Posts: 232
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: Asteroid Per Outro - Simple Game to my studies

Post 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 338 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
User avatar
Sulunia
Party member
Posts: 203
Joined: Tue Mar 22, 2016 1:10 pm
Location: SRS, Brazil

Re: Asteroid Per Outro - Simple Game to my studies

Post 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>
Don't check my github! It contains thousands of lines of spaghetti code in many different languages cool software! :neko:
https://github.com/Sulunia
User avatar
modog
Prole
Posts: 17
Joined: Sun Mar 27, 2016 1:20 am

Re: Asteroid Per Outro - Simple Game to my studies

Post 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
:emo: lua-chan falling in love with löve-senpai :neko:
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Asteroid Per Outro - Simple Game to my studies

Post 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.
User avatar
Luke100000
Party member
Posts: 232
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: Asteroid Per Outro - Simple Game to my studies

Post 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
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Asteroid Per Outro - Simple Game to my studies

Post by Nixola »

You should start using 0.10.1, there's pretty much no reason to stay behind.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Luke100000
Party member
Posts: 232
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: Asteroid Per Outro - Simple Game to my studies

Post 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.
User avatar
modog
Prole
Posts: 17
Joined: Sun Mar 27, 2016 1:20 am

Re: Asteroid Per Outro - Simple Game to my studies

Post 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.
:emo: lua-chan falling in love with löve-senpai :neko:
User avatar
modog
Prole
Posts: 17
Joined: Sun Mar 27, 2016 1:20 am

Re: Asteroid Per Outro - Simple Game to my studies

Post 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.
:emo: lua-chan falling in love with löve-senpai :neko:
Post Reply

Who is online

Users browsing this forum: No registered users and 65 guests