Search found 4835 matches
- Mon Sep 01, 2008 6:58 pm
- Forum: Support and Development
- Topic: This rectangle doesn't want to touch my balls :(
- Replies: 8
- Views: 5784
Re: This rectangle doesn't want to touch my balls :(
Found your second problem, setVelocity (in entity) is accidentily declared as setPosition too, so it thinks it has to set the velocity instead of the position. I'll upload 3.
- Mon Sep 01, 2008 6:44 pm
- Forum: Support and Development
- Topic: Can you make a game load another lua file
- Replies: 17
- Views: 18673
Re: Can you make a game load another lua file
function keyreleased(key) if key == love.key_space then love.filesystem.require("1.lua") end end This would work. I will try to explain what I meant about the callbacks. In the loader you create callbacks (load, draw and keyreleased in this case), however if you load the new file it won't...
- Mon Sep 01, 2008 6:13 pm
- Forum: General
- Topic: Avatars: OBEY!
- Replies: 763
- Views: 1010741
Re: Avatars: OBEY!
My avatar is the same as all of my other graphics.. real bad, however if you look really, really good you might recognize the letters O, B, E, and Y and on top of that an exclamation mark!
- Mon Sep 01, 2008 6:11 pm
- Forum: Support and Development
- Topic: Can you make a game load another lua file
- Replies: 17
- Views: 18673
Re: Can you make a game load another lua file
Use love.filesystem.require or love.filesystem.include. However, the callbacks aren't automatically overwritten, so instead of: function draw() --some stuff end do: draw = function () --some stuff end EDIT: I was WRONG please ignore code snippets above And, even more important, you should call load ...
- Fri Aug 29, 2008 10:54 am
- Forum: General
- Topic: Future Game Distribution
- Replies: 22
- Views: 17332
Re: Future Game Distribution
As you mentioned PhysFS is able to read zip data that is appended to the file, so the only thing to implement is a way for the binary to detect it contains an internal love file and use that. As "compiler" you could use some kind of dd utility (in linux) or you could even do something like...