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.
Asteroid Per Outro - Simple Game to my studies
Re: Asteroid Per Outro - Simple Game to my studies
https://github.com/Sulunia
Re: Asteroid Per Outro - Simple Game to my studies
I made that, but tried to fixed this problem:
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
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
lua-chan falling in love with löve-senpai
Re: Asteroid Per Outro - Simple Game to my studies
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.
Obs: playerImage is the texture the player uses, and i assume you're drawing the player without setting an offset.
https://github.com/Sulunia
- 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
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
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)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Re: Asteroid Per Outro - Simple Game to my studies
Well you said:
.
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
Sooo.... I dinked around with your codeYou can modify what you want
.
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 166 times
Re: Asteroid Per Outro - Simple Game to my studies
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
Who is online
Users browsing this forum: Bing [Bot] and 1 guest