Asteroid Per Outro - Simple Game to my studies

Show off your games, demos and other (playable) creations.
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 »

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 »

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: 203
Joined: Tue Mar 22, 2016 1:10 pm
Location: SRS, Brazil

Re: Asteroid Per Outro - Simple Game to my studies

Post by Sulunia »

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 »

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

Re: Asteroid Per Outro - Simple Game to my studies

Post by Ref »

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 153 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 »

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