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 » Mon Mar 28, 2016 9:09 am

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 http://i.imgur.com/2Ij6OO6.jpg

Moviment: Arrow keys
Shoot: X

:cool:
Attachments
Asteroid Per Outro v.0.0.1.love
(1.07 MiB) Downloaded 139 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: 221
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: Asteroid Per Outro - Simple Game to my studies

Post by Luke100000 » Mon Mar 28, 2016 11:58 am

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 http://i.imgur.com/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 91 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: 198
Joined: Tue Mar 22, 2016 1:10 pm
Location: SRS, Brazil

Re: Asteroid Per Outro - Simple Game to my studies

Post by Sulunia » Mon Mar 28, 2016 4:18 pm

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 » Tue Mar 29, 2016 1:00 am

@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: 672
Joined: Wed May 02, 2012 11:05 pm

Re: Asteroid Per Outro - Simple Game to my studies

Post by Ref » Tue Mar 29, 2016 2:36 pm

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: 221
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: Asteroid Per Outro - Simple Game to my studies

Post by Luke100000 » Tue Mar 29, 2016 3:05 pm

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: 1935
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Asteroid Per Outro - Simple Game to my studies

Post by Nixola » Tue Mar 29, 2016 3:32 pm

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: 221
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: Asteroid Per Outro - Simple Game to my studies

Post by Luke100000 » Tue Mar 29, 2016 6:55 pm

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 » Wed Mar 30, 2016 2:09 am

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 » Wed Mar 30, 2016 5:24 am

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 9 guests