That switch thing is ugly, why are you doing that? It's pointless, just do the normal 'if then else' statements.
And, you can use string.sub(), http://lua-users.org/wiki/StringLibraryTutorial.
Search found 166 matches
- Sun Nov 30, 2008 6:04 pm
- Forum: Libraries and Tools
- Topic: Creating a Text Editor
- Replies: 15
- Views: 17448
- Sun Nov 30, 2008 4:26 pm
- Forum: Support and Development
- Topic: Freeze when reading a 102kb file?
- Replies: 3
- Views: 2142
Re: Freeze when reading a 102kb file?
Yeah but I just do this:
local data = love.filesystem.read("saves/"..file);
And it still doesn't work (still freezes)?
local data = love.filesystem.read("saves/"..file);
And it still doesn't work (still freezes)?
- Sun Nov 30, 2008 3:52 am
- Forum: Support and Development
- Topic: Freeze when reading a 102kb file?
- Replies: 3
- Views: 2142
Freeze when reading a 102kb file?
Why does it freeze when I read a 102kb file?
- Sat Nov 29, 2008 2:16 am
- Forum: Libraries and Tools
- Topic: ËNVY (LÖVE Framework)
- Replies: 86
- Views: 67404
Re: ËNVY (LÖVE Framework)
http://kudomiku.com/dump/lua/envy/download.png Version: [/i] Phase 12. Download: [/i]http://kudomiku.com/dump/lua/envy/envy.love. Changelog: [/i] [Phase 12] * Added envy.map library. * Added onError(message) hook. * Added onMapLoad(map) hook. * Added onDrawMap(map) hook. * Added onMapUnload(map) ho...
- Thu Nov 27, 2008 2:30 pm
- Forum: Libraries and Tools
- Topic: ËNVY (LÖVE Framework)
- Replies: 86
- Views: 67404
Re: ËNVY (LÖVE Framework)
Kudomiku do you have a function in ENVY that returns the dot product? If not that could be really useful. I'm just starting out with vector math and one thing XNA had was a math.dot function that I used a lot. I can live without it but just a suggestion while your adding other useful stuff. vector:...
- Thu Nov 27, 2008 11:56 am
- Forum: Libraries and Tools
- Topic: ËNVY (LÖVE Framework)
- Replies: 86
- Views: 67404
Re: ËNVY (LÖVE Framework)
http://kudomiku.com/dump/lua/envy/download.png Version: [/i] Phase 11. Download: [/i] http://kudomiku.com/dump/lua/envy/envy.love. Changelog: [/i] [Phase 11] * Added envy.util.getSound and envy.util.newMusic and envy.util.getImage. * Added envy.util.isBetween(value, minimum, maximum). * Added envy....
- Wed Nov 26, 2008 7:44 pm
- Forum: Libraries and Tools
- Topic: LUBE (Networking Library)
- Replies: 332
- Views: 225861
Re: LUBE (Networking Library)
http://www.independent.co.uk/life-style ... 72809.htmlbartbes wrote:no nothing bad, probably just the flu
- Wed Nov 26, 2008 2:18 pm
- Forum: Libraries and Tools
- Topic: ËNVY (LÖVE Framework)
- Replies: 86
- Views: 67404
Re: ËNVY (LÖVE Framework)
The network stuff won't be ready till like PHASE 22 or something, I want it to be really good, and I want to wait until LUBE is ready.
And as for the GUI stuff, me and Borsty are working on a little something at the moment and then I'll release it soon.
And as for the GUI stuff, me and Borsty are working on a little something at the moment and then I'll release it soon.
- Wed Nov 26, 2008 1:34 pm
- Forum: Libraries and Tools
- Topic: ËNVY (LÖVE Framework)
- Replies: 86
- Views: 67404
Re: ËNVY (LÖVE Framework)
This is the first time I've ever attempted networking in my life :O SERVER: function GAME:sendEntities(ip) for k, v in pairs(envy.entity.spawned) do self.server:send("entity", ip); self.server:send("x:"..v:getX(), ip); self.server:send("y:"..v:getY(), ip); self.server:s...
- Wed Nov 26, 2008 12:25 pm
- Forum: Libraries and Tools
- Topic: LUBE (Networking Library)
- Replies: 332
- Views: 225861
Re: LUBE (Networking Library)
Nevermind, works now...
(sneaky fix? )
(sneaky fix? )