Search found 9 matches

by player_258
Sat Jan 02, 2016 9:41 pm
Forum: Support and Development
Topic: Threads not working?
Replies: 10
Views: 5282

Re: Threads not working?

Channel:getCount() you can get them all at once, and put them in a table or something function getEvents(myChannel) local events = {} for i = 1, myChannel:getCount() do table.insert(events, myChannel:pop()) end return events end it's up to you deciding what to do in case of getting +1 results. btw,...
by player_258
Fri Jan 01, 2016 6:47 pm
Forum: Support and Development
Topic: My pong game has broken colision detection
Replies: 2
Views: 2036

Re: My pong game has broken colision detection

try this if bally >= piy and bally <= piy + 15 then -- collisions with paddles (the broken part) -- ballgox = 1 end if bally >= piiy and bally <= piiy + 15 then ballgox = -1 end all that's left is to check if ballx is near the paddles, but i'm sure u can figure that out on your own
by player_258
Fri Jan 01, 2016 4:11 am
Forum: Support and Development
Topic: Threads not working?
Replies: 10
Views: 5282

Re: Threads not working?

rod_sn wrote:This is so complicated ;-; Can someone just make a quick demo? Just download google page in a seperate thread. I feel so confused :cry:
write http://love2d.org in there, it'll give you the html code using threads,
for some reason, http://google.com gives a utf8 error for me.
by player_258
Thu Jul 17, 2014 6:04 am
Forum: Support and Development
Topic: Problem to separate lua files
Replies: 1
Views: 1959

Re: Problem to separate lua files

hi ! browsing through your code the first problem i found was this: nave = {} -- Configurações da Nave -- function novaNave(x, y) nave = {} nave.x = x or 0 nave.y = y or 0 --more code end function nave.load() -- Cria a nave -- nave = novaNave(largura / 2 - 32, altura - 96) end function nave.update(d...
by player_258
Sat May 31, 2014 5:53 pm
Forum: Games and Creations
Topic: Shapes of Doom
Replies: 11
Views: 9159

Re: Shapes of Doom

Image

its cool for your first game :D
you could improve it by making appear more than 3 shapes at once ;)
by player_258
Sat Apr 26, 2014 9:32 pm
Forum: Libraries and Tools
Topic: box2d playground
Replies: 1
Views: 2432

box2d playground

hi! i made a box2d playground a while back but eventually got bored and it sat on my hard drive for a year or something. the export function will write a .lua in "AppData\Roaming\LOVE\box2d_editor" buttons are not labeled (too lazy) so this is what they do: -Selection -Rectangle -Polygon -...
by player_258
Thu Jun 20, 2013 4:27 pm
Forum: Games and Creations
Topic: Pong!
Replies: 4
Views: 3486

Re: Pong!

Nice! I especially like the menu. For a local game (I didn't try the online mode), why do you let one player use the mouse? It would be more fair if both players used the keyboard. Player one could use W/S, for example. Or you could let the player choose which keys to use. i didn't think about that...
by player_258
Thu Jun 20, 2013 4:05 pm
Forum: Games and Creations
Topic: Pong!
Replies: 4
Views: 3486

Pong!

Hello! (Sorry if theres any english mistakes, im not a native speaker) This is a game that i guess i've finished, it's just pong with laggy online capabilities that i wanted to show off :awesome: Screenies: oKrstIi.png of2TaZj.png Features: -Online (and local too) -Change player colors -You can chan...