Search found 4835 matches

by bartbes
Mon Sep 01, 2008 6:58 pm
Forum: Support and Development
Topic: This rectangle doesn't want to touch my balls :(
Replies: 8
Views: 5748

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.
by bartbes
Mon Sep 01, 2008 6:44 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18632

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...
by bartbes
Mon Sep 01, 2008 6:13 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 763
Views: 1001611

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!
by bartbes
Mon Sep 01, 2008 6:11 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18632

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 ...
by bartbes
Fri Aug 29, 2008 10:54 am
Forum: General
Topic: Future Game Distribution
Replies: 22
Views: 17302

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...