middleclass & extras: middleclass 3.0 is out!
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
I'm glad I can help. Stateful is the next thing I'll update - either this week or the next one.
When I write def I mean function.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
No Class Commons? I am disappoint.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
It's on my list! But I need to do this first, sorry
When I write def I mean function.
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
kikito wrote: I'm glad I can help. Stateful is the next thing I'll update - either this week or the next one.
EDIT: Actually, I see you have been updating it. I'll see what is wrong.
EDIT2: OH! stateful is its own separate repo now. Gotcha. And it works.
Code: Select all
Stateful = require 'stateful.stateful'
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
Hi technocat,
I'm afraid that I haven't been able to release it yet. Sorry about that. I've been a bit ill and real life had me working on other things.
It's approaching completion, though. The main functionality is already there - only secondary stuff is left (for example, callbacks are not invoked when popAllStates is called; isInState isn't implemented, and states are not included in mixins - althought I might leave that one out)
As a side note, I've decided that from now on it will be my policy to not provide a folder, but a self-contained file for all my libs. This way you will not need a require 'stateful.stateful' (which in some cases gives trouble to physfs) but simply require 'stateful'.
Regards, and apologies for the delay!
I'm afraid that I haven't been able to release it yet. Sorry about that. I've been a bit ill and real life had me working on other things.
It's approaching completion, though. The main functionality is already there - only secondary stuff is left (for example, callbacks are not invoked when popAllStates is called; isInState isn't implemented, and states are not included in mixins - althought I might leave that one out)
As a side note, I've decided that from now on it will be my policy to not provide a folder, but a self-contained file for all my libs. This way you will not need a require 'stateful.stateful' (which in some cases gives trouble to physfs) but simply require 'stateful'.
Regards, and apologies for the delay!
When I write def I mean function.
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
My minuscule needs seem to have already been met. It seems to work without any problems.kikito wrote:Hi technocat,
I'm afraid that I haven't been able to release it yet. Sorry about that. I've been a bit ill and real life had me working on other things.
It's approaching completion, though. The main functionality is already there - only secondary stuff is left (for example, callbacks are not invoked when popAllStates is called; isInState isn't implemented, and states are not included in mixins - althought I might leave that one out)
I made this with middleclass 2.0 and the new stateful. (and Tween)
- Attachments
-
- splash.love
- 0.7.2
- (658.15 KiB) Downloaded 126 times
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
Do class declarations have to be global?
I tried doing this and it keeps giving me an upvalue boolean error when I require it in another file and do :new on the returned object.
Code: Select all
local Shmup = class('Shmup')
function Shmup:initialize()
end
function Shmup:update(dt)
end
function Shmup:draw()
end
return Shmup
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
As far as I know, no.TechnoCat wrote:Do class declarations have to be global?
That is weird.TechnoCat wrote:I tried doing this and it keeps giving me an upvalue boolean error when I require it in another file and do :new on the returned object.
Can you include inspect.lua in your main and print the Shmup variable on the console?
Code: Select all
local inspect = require 'inspect'
local Shmup = require 'Shmup'
puts(inspect(Shmup))
Last edited by kikito on Fri Oct 14, 2011 9:20 am, edited 1 time in total.
When I write def I mean function.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
You spend too much time with Ruby.
Help us help you: attach a .love.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: middleclass & extras: middleclass 2.0 is out!
That is impossible
When I write def I mean function.
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests