Page 2 of 2

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Wed Mar 30, 2016 1:08 pm
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.

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Thu Mar 31, 2016 7:08 am
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

Re: Asteroid Per Outro - Simple Game to my studies

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

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Thu Mar 31, 2016 9:06 pm
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

Re: Asteroid Per Outro - Simple Game to my studies

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

Re: Asteroid Per Outro - Simple Game to my studies

Posted: Thu Jun 01, 2017 5:00 am
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