Search found 410 matches
- Wed Apr 17, 2013 11:40 am
- Forum: Support and Development
- Topic: SOLVED Checking collision between objects in multiple arrays
- Replies: 23
- Views: 9422
Re: Checking collision between objects in multiple arrays
You need to remove it from both lists. That means some extra work for keeping the lists in sync. Or you could use weak tables, to the entry will be automatically removed from it when garbage collector cleans it: listOfEnemies=setmetatable({}, {__mode='v'}) listOfObjects={} do local enemy={x=10,y=10...
- Tue Apr 16, 2013 7:57 am
- Forum: Support and Development
- Topic: SOLVED Checking collision between objects in multiple arrays
- Replies: 23
- Views: 9422
Re: Checking collision between objects in multiple arrays
Your collision check then only needs two loops: for i=1,#arrayObject do for j=1,#arrayObject do local o1 = arrayObject[i] local o2 = arrayObject[j] checkCollision(o1,o2) ... end end You don't need to check collision of an object with itself. Also, if a collides with b then b collides with a - no ne...
- Tue Apr 16, 2013 7:43 am
- Forum: Ports
- Topic: [javascript]Luv.js
- Replies: 36
- Views: 34549
Re: [javascript]Luv.js
You can see some usage examples on the examples folder . Feel free to comment, I'm still learning the language. Works OK for me, even on Galaxy S3 default web browser (the only issue being touch input/mousepress). This is so great that it would make me to start playing with JS. Will be watching you...
- Wed Mar 27, 2013 7:12 am
- Forum: Support and Development
- Topic: [solved] bounding boxes from image data
- Replies: 3
- Views: 1483
Re: bounding boxes from image data
Is it?CaptainMaelstrom wrote: The code is attached
- Mon Mar 25, 2013 7:34 am
- Forum: Support and Development
- Topic: Include lsqlite3 in 0.9.0 or later
- Replies: 47
- Views: 17282
Re: Include lsqlite3 in 0.9.0 or later
I'm just looking for a more well-researched proposal than "I think it should be in LÖVE because I could use it in my game", especially since it's been proposed and denied multiple times before. :) I am also for sqlite3. Obvoius advantages are: - possibility to save game states, without wo...
- Fri Mar 22, 2013 10:47 pm
- Forum: Support and Development
- Topic: Movement Code Error
- Replies: 2
- Views: 1722
Re: Movement Code Error
Hi, I'm porting an RPG Movement Engine I made in GameMaker over to Love. Aside from the code not functioning 100% correctly, pressing left or right causes the game to crash with: Error: main.lua:136: attempt to perform arithmetic on field 'usedSpeed' (a nil value) stack traceback: main.lua:136: in ...
- Thu Mar 21, 2013 7:53 am
- Forum: General
- Topic: Aroma - Game engine for Chrome
- Replies: 20
- Views: 14333
Re: Aroma - Game engine for Chrome
Isn't that way faster than using js proxy? So for demanding games aroma could make them playable. Another "bonus" would be installing from chrome web store.SiENcE wrote:Ok, but no enduser feature .szensk wrote:Aroma does not convert Lua to Javascript.
- Thu Mar 21, 2013 7:08 am
- Forum: Libraries and Tools
- Topic: Love2D IDE in Google Chrome
- Replies: 10
- Views: 8303
Re: Love2D IDE in Google Chrome
Good suggestion, although it might not be exactly what I'm looking for. It looks like you can make games FOR chrome but you can't create the game ENTIRELY WITHIN chrome. I am aware of that, but if you already know love2d, then you know how to write applications for chrome using aroma. There are som...
- Wed Mar 20, 2013 11:42 pm
- Forum: Libraries and Tools
- Topic: Love2D IDE in Google Chrome
- Replies: 10
- Views: 8303
Re: Love2D IDE in Google Chrome
I came up with an idea to make a Lua/Love IDE as a google chrome app since I'm getting a chromebook and I'd love to be able to make games with it. Sadly, I don't have nearly the amount of knowledge or experience to be able to do this. Since it would be a chrome app, you would be able to sync your c...
- Tue Mar 19, 2013 8:22 am
- Forum: Support and Development
- Topic: How to make a function wait X amount time?
- Replies: 17
- Views: 15038
Re: How to make a function wait X amount time?
I am very new to programming and coming from a "custom map" background in games like SC2. I am currently trying to make a platformer game in Love2d. But I wonder how I can make something wait X amount of seconds before doing the next thing. Simple answer: you don't want to stop the lua co...