Asteroid Per Outro - Simple Game to my studies

Show off your games, demos and other (playable) creations.
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 » Wed Mar 30, 2016 1:08 pm

To use the love2d particle system, you must first create the particle system, assign an image to it, set a lot of properties for the particle system and FINALLY update it in your update loop.

It's quite troublesome, but very flexible. Check the love2d wiki, it has a nice guide on this.
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 » Thu Mar 31, 2016 7:08 am

I made that, but tried to fixed this problem:

Image

Changelog:
- Now the player start in the middle
- Restart button fixed
- adding particle system

Bugs
- Particle System dont show in collision place
- The player collides with the map only on one side

Ideias:
- Adding menu and maybe final credits
- Graphics Filters
- Enemy shoot in high level/waves
:emo: lua-chan falling in love with löve-senpai :neko:

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 » Thu Mar 31, 2016 4:11 pm

To fix character going out of the screen sides, just check if the the playerX is not bigger than the (screenSizeWidth - playerImage:getWidth()) or smaller than 0.

Obs: playerImage is the texture the player uses, and i assume you're drawing the player without setting an offset.
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
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Asteroid Per Outro - Simple Game to my studies

Post by qubodup » Thu Mar 31, 2016 9:06 pm

For a first invaders it looks and sounds nice (yay for non-black background!) :) The collision detection is off though, the left side of the enemies ignore bullets.


https://youtu.be/vP8OQo3_-uk
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

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 » Fri Apr 01, 2016 1:46 am

Well you said:
You can modify what you want
Sooo.... I dinked around with your code
.
Would be beneficial for you to fragment your code into modules - easier to add feathers and easier to maintain.

Mods I made are only an indication as to what you could do if you want - not taking credit for you codes.

Best
Attachments
ModogAttack.love
(1.29 MiB) Downloaded 50 times

mandres
Prole
Posts: 1
Joined: Thu Jun 01, 2017 4:58 am

Re: Asteroid Per Outro - Simple Game to my studies

Post by mandres » Thu Jun 01, 2017 5:00 am

Hi, i need to do this game but with 4 players implementing a client-server communication using LuaSockets, would you help me please? i'm in a hurry

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests