Search found 221 matches

by giniu
Mon Feb 15, 2010 12:20 am
Forum: General
Topic: Making LÖVE together!
Replies: 81
Views: 54789

Re: Making LÖVE together!

Here it is, last question! Sorry for delay. Go to http://poll.fm/1lvup and VOTE NOW :ultrahappy: All 5 propositions are listed in first comment to poll - if you want to propose something else, remember to put only some ID in "Other" field, only about 32 characters fit there (or something l...
by giniu
Sun Feb 14, 2010 2:46 pm
Forum: General
Topic: Making LÖVE together!
Replies: 81
Views: 54789

Re: Making LÖVE together!

Again 3 posts in a row, but it's time to close another polls so decided to announce it - here it goes... I closed polls with 8 votes for each question, now wait few hours for new poll to appear. To adjust story beginnings that will be presented soon we need to know final answers to those two, that's...
by giniu
Sat Feb 13, 2010 6:44 pm
Forum: Libraries and Tools
Topic: middleclass & extras: middleclass 3.0 is out!
Replies: 243
Views: 77984

Re: MiddleClass & MindState: Object Orientation for LUA

I just wonder, what do you think about this Singleton implementation? Game = class('Game') local _GameInstance = nil function Game:instance() return _GameInstance or Game:new() end function Game:initialize() assert(not _GameInstance, "Game is a singleton") _GameInstance=self end getmetatab...
by giniu
Sat Feb 13, 2010 3:22 pm
Forum: General
Topic: LÖVE 0.6.1
Replies: 44
Views: 24328

Re: LÖVE 0.6.1

Congratulations on new release, quite fast after 0.6.0 :) I must say that I especially like
rude wrote:
  • The error screen redraws when an event occurs.
it really speeds up my getting around 0.6.x, really glad to see it back :)
by giniu
Sat Feb 13, 2010 3:16 pm
Forum: Libraries and Tools
Topic: middleclass & extras: middleclass 3.0 is out!
Replies: 243
Views: 77984

Re: MiddleClass & MindState: Object Orientation for LUA

One small question... in wiki you say that :new part is implicit, i.e. there is __call for classes, right? But when I try: > require 'MiddleClass' > Game = class('Game') > game1 = Game:new() > game2 = Game() stdin:1: attempt to call global 'Game' (a table value) stack traceback: stdin:1: in main chu...
by giniu
Thu Feb 11, 2010 5:46 pm
Forum: Libraries and Tools
Topic: middleclass & extras: middleclass 3.0 is out!
Replies: 243
Views: 77984

Re: MiddleClass & MindState: Object Orientation for LUA

It's good description, I like it :) As of use cases you presented there I think it's more than enough for normal uses of private scope for class

Btw. I was thinking about what other examples could be cool - you can also give example of Singleton implementation ;)
by giniu
Thu Feb 11, 2010 3:20 pm
Forum: Libraries and Tools
Topic: middleclass & extras: middleclass 3.0 is out!
Replies: 243
Views: 77984

Re: MiddleClass & MindState: Object Orientation for LUA

was looking trough MC and have one question - is it possible to have private fields in classes? Say not necessary methods, but variables? Maybe there is some universal solution or recommendation for private use with MC?
by giniu
Wed Feb 10, 2010 5:52 pm
Forum: General
Topic: Making LÖVE together!
Replies: 81
Views: 54789

Re: Making LÖVE together!

And the winners of current polls are: Separate detailed tactical view for fights, consistent view for travel and exploration, parts of world randomly generated. and Full fusion of magic with technology, magic described in technology terms or other way around. That's actually a lot of informations al...
by giniu
Tue Feb 09, 2010 11:36 am
Forum: Libraries and Tools
Topic: Game state management with hierarchy, looking for comments
Replies: 16
Views: 7394

Re: Game state management with hierarchy, looking for comments

Hi, I feel I wouldn't use MindState directly, I'm actually quite used to hierarchy in game states - but maybe I would use MiddleClass thought to get previous behaviour from attached file, will see :)