Search found 55 matches
- Fri Dec 17, 2010 8:43 pm
- Forum: Support and Development
- Topic: Now on to the menus...
- Replies: 2
- Views: 1254
Now on to the menus...
Hello again, LÖVE'rs. As some of you may have seen in my previous thread I had taken some of the code from the game Kunosuke so as to understand its menu system and the OOP capabilities of middleclass. Now I have run into another brick wall. When I run my simple little program I can't get the highli...
- Fri Dec 17, 2010 1:59 am
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3885
Re: Using middleclass
Sweet. Thanks kikito!
*Tries new changes*
Works... For now.
*Tries new changes*
Works... For now.
- Fri Dec 17, 2010 1:40 am
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3885
Re: Using middleclass
Sure, here's the line:
Code: Select all
for i=1, #self.menu do
- Thu Dec 16, 2010 11:34 pm
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3885
Re: Using middleclass
Thank you, guys. I shall edit my little script accordingly. *Looks through script* The stuff you guys have told me seem to be found in the code (i.e. no editing). Here's the error. boot [string "menus.lua"]:32: attempt to index local 'self' (a nil value) stack traceback: [string "boot...
- Thu Dec 16, 2010 5:28 pm
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3885
Re: Using middleclass
So I take it the "self" part is not really necessary?
- Thu Dec 16, 2010 4:29 pm
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3885
Re: Using middleclass
I was just trying to write a simple menu (or try out a simple menu). So simple is this, I just wrote the barebones: require "menus.lua" -- This code has already been posted. function love.load() end function love.update(dt) game = Game:new() end function love.draw() game:drawMenus() end
- Thu Dec 16, 2010 3:50 pm
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3885
Re: Using middleclass
I'm just trying to get the function "Game:initialize(self)" to work. Disregarding "Stateful", is it "super:initialize(self)" or "self:menu ={}"?
- Thu Dec 16, 2010 6:55 am
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3885
Using middleclass
Hello again, Lovers. I have been trying to use middleclass, but when I do the variable "self" isn't found when I use it. When I run the program LÖVE keeps giving me an error about indexing a local variable, even though I clearly required "middleclass". I even just requiring "...
- Sun Dec 12, 2010 1:35 am
- Forum: Games and Creations
- Topic: MetaMorphEyes
- Replies: 23
- Views: 12633
Re: MetaMorphEyes
You could really work this into something.
- Tue Dec 07, 2010 6:20 pm
- Forum: Support and Development
- Topic: Going through complex tables
- Replies: 12
- Views: 3794
Re: Going through complex tables
Thanks again for the feedback, guys.
I had looked on Google for a type() function in Lua but I couldn't find it.
I had looked on Google for a type() function in Lua but I couldn't find it.