Search found 18 matches
- Sat Oct 31, 2009 6:51 pm
- Forum: Support and Development
- Topic: Accessible objects and Love
- Replies: 13
- Views: 15300
Re: Accessible objects and Love
Great explanation anjo, really makes sense now. Though how would I go about creating objects at runtime as apposed to having them all created when the game is loaded? This is my code so far: function load() ObjectsList = {} -- A global list of all objects inside of the game local Block1 = {} -- Firs...
- Sat Oct 31, 2009 11:54 am
- Forum: Support and Development
- Topic: Accessible objects and Love
- Replies: 13
- Views: 15300
Re: Accessible objects and Love
function load() character = {} character.sprite = love.graphics.newImage("sprite.png") character.x = 100 character.y = 100 end function draw() love.graphics.draw(character.sprite, character.x, character.y) end The above is not necessarily best practice coding (in fact, it definitely isn't...
- Fri Oct 30, 2009 4:31 pm
- Forum: Support and Development
- Topic: lua objects?
- Replies: 7
- Views: 3802
Re: lua objects?
Amazing! I did read about tables but assumed they were only to be used as arrays, turns out they got unlimited uses!
- Fri Oct 30, 2009 3:53 pm
- Forum: Support and Development
- Topic: lua objects?
- Replies: 7
- Views: 3802
lua objects?
Hi I'm new to LUA after coming from javascript/c# background. At this stage I'm just familiarizing my self with LUA and love but I'm curious as to how I go about creating custom objects? For example in javascript I could create an object such as "player" then from that I can do stuff like ...
- Fri Oct 30, 2009 9:35 am
- Forum: Support and Development
- Topic: floor integers?
- Replies: 6
- Views: 7108
Re: floor integers?
:x For all your Lua needs, remember to check first: 1. the reference http://www.lua.org/manual/5.1/ . There's all you need to know there, once you know a bit about the language. 2. the official book, http://www.lua.org/pil/ for more friendly and verbose explanations. Ideal to learn. It should also ...
- Thu Oct 29, 2009 7:37 pm
- Forum: General
- Topic: 0.6.0 Update
- Replies: 221
- Views: 104499
Re: 0.6.0 Update
Just tested and yes it does work when running as admin.bartbes wrote:This appears to be something related to output, can you tell us if it works when you run it as administrator? (if you want to, of course)
- Thu Oct 29, 2009 6:34 pm
- Forum: General
- Topic: 0.6.0 Update
- Replies: 221
- Views: 104499
Re: 0.6.0 Update
Yeah sure I'll try that now, I'm just wondering if I can do multiple install of LOVE without any problems? So far I'm sticking to one build at a time but do I have too?
- Thu Oct 29, 2009 5:52 pm
- Forum: General
- Topic: 0.6.0 Update
- Replies: 221
- Views: 104499
Re: 0.6.0 Update
Hey guys I'm a new lover trying out 0.6 and I'm getting a crash every time I close a window. This doesn't happen in 0.5 so it must be a bug, thought I'd let you guys know.