Search found 76 matches
- Mon Nov 02, 2009 1:47 am
- Forum: Support and Development
- Topic: lua objects?
- Replies: 7
- Views: 3823
Re: lua objects?
but it doesn't stop there... you can also set up a __call function in the metatable and then use the table the same way as a function (while still keeping all its other awesomeness): t={} t.note='associative arrays' meta={__call=function(self,x) print(self.note..' and metatables are '..tostring(x)) ...
- Sun Nov 01, 2009 9:20 pm
- Forum: General
- Topic: LuaJIT 2.0
- Replies: 10
- Views: 16568
Re: LuaJIT 2.0
daveberk: There are a host of other hardware architectures that would be nuked by this (PPC32, PPC64, ARM, etc) - nothing kills portability like hand coded assembly... But the main point stands: the biggest load in most games is already taken by external libraries that would get no benefit from LuaJ...
- Sun Nov 01, 2009 8:50 am
- Forum: General
- Topic: LuaJIT 2.0
- Replies: 10
- Views: 16568
Re: LuaJIT 2.0
As far as love goes, it seems almost pointless. Most of the time game speed is limited by the graphics, sound and physics - all of which are provided by precompiled external libraries (SDL, OpenAL, Box2d). LuaJIT gives no benefit at all to this situation. For the tiny fraction of lua implemented gam...
- Sun Nov 01, 2009 2:05 am
- Forum: General
- Topic: LuaJIT 2.0
- Replies: 10
- Views: 16568
Re: LuaJIT 2.0
The fine print is quite clear: LuaJIT only works on x86 platforms (because of hand coded assembly).
If this becomes a part of LOVE, it will cut off a significant degree of compatibility...
If this becomes a part of LOVE, it will cut off a significant degree of compatibility...
- Thu Oct 29, 2009 11:42 pm
- Forum: Games and Creations
- Topic: Jack in a Box, tiny platformer 'base' for 0.6
- Replies: 11
- Views: 6587
Re: Jack in a Box, tiny platformer 'base' for 0.6
rofl... I was just so excited that I stopped reading after 'platformer'.
Not looked at 0.6 yet, but (in 0.5 parlance) maybe something like:
Not looked at 0.6 yet, but (in 0.5 parlance) maybe something like:
Code: Select all
if love.system.getVersion()~='0.6.0' then
print('you need love 0.6.0 to run this game')
end
- Thu Oct 29, 2009 11:33 pm
- Forum: Support and Development
- Topic: floor integers?
- Replies: 6
- Views: 7165
Re: floor integers?
another good lua reference: http://pgl.yoyo.org/luai/i/_ You could combat gaps by: 1) making your images overlap a little (so a bit of shift is ok) 2) placing images relative to each other. eg: img1 at img1.x, img2 at img1.x+img1.width, img3 at img1.x+img1.width+img2.width, etc 3) use a package to h...
- Thu Oct 29, 2009 11:10 pm
- Forum: Games and Creations
- Topic: Jack in a Box, tiny platformer 'base' for 0.6
- Replies: 11
- Views: 6587
platform bug?
Opens a black screen that does nothing, will not respond to input.
No errors reported on console, same console output as when I run a working love file (eg no.love).
(running on PPC debian stable, love 0.5)
No errors reported on console, same console output as when I run a working love file (eg no.love).
(running on PPC debian stable, love 0.5)
- Mon Oct 26, 2009 3:57 am
- Forum: Support and Development
- Topic: Hiding the Code
- Replies: 8
- Views: 7366
Re: Hiding the Code
There are different kinds of cheating in different kinds of game... With a good (read paranoid) client/server system, each client only gets fed data the player is allowed to see, and only supplies the server with each player's commands... all processing/simulation is done (or mirrored) on the server...
- Mon Oct 26, 2009 3:42 am
- Forum: Games and Creations
- Topic: Impulse
- Replies: 29
- Views: 28140
Re: Impulse
The rate of growth is very small when reabsorbing, so if you only do it a bit, you will not notice. I observed the effect by: 0) absorb everything on level 1) zoom around, emmitting lots of bubbles (down to half your size) 2) collect them all again 3) repeat quite a few times ... until ..... 4) even...
- Wed Oct 21, 2009 7:41 am
- Forum: General
- Topic: [ANN] LuaGravity 0.5
- Replies: 6
- Views: 6269
Re: [ANN] LuaGravity 0.5
Please forgive my bluntness, but for a system like love (which already provides a callback environment), and a language like lua (with coroutines), what is the point of LuaGravity?