I didn't think it through? I mean, I do love the idea of being a fascist and saying that THIS IS THE WAY IT IS, which has worked very well for me, but if the community really wants this, I don't see why not... is this a lot of work? Tell me the truth now...rude wrote:Yeah, looks like I better get used to being Justin Timberlake ...
Or Mike just didn't think it through.
A more object-oriented approach?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: A more object-oriented approach?
Now posting IN STEREO (where available)
- Dr. Magnusson
- Prole
- Posts: 22
- Joined: Sun Jul 20, 2008 6:10 pm
Re: A more object-oriented approach?
I've always preferred the OOP way over the one LÖVE and many other people working with Lua are using (Multi Theft Auto for one).
Rewriting is probably a lot of work though. I'll be trying to write it in pure Lua, and see how far it goes.
Rewriting is probably a lot of work though. I'll be trying to write it in pure Lua, and see how far it goes.
-
- Citizen
- Posts: 94
- Joined: Thu Feb 21, 2008 1:11 am
Re: A more object-oriented approach?
I'm nod coder, don't understand OOP but,
this doesn't make sense to me. Draw as a method of font?emonk wrote:Code: Select all
someFont:draw("text", x, y)
And I agree.Mr. Strange wrote:I'd actually prefer to use
love.graphics.draw("text string", x, y [,someFont])
>>I love LÖVE.<<
Re: A more object-oriented approach?
I would prefer it if we didn't have to have love in front of every function
It just seems a bi long winded to have to do love.graphics.draw when graphics.draw would be a lot quicker.
But I'm just being picky :v
It just seems a bi long winded to have to do love.graphics.draw when graphics.draw would be a lot quicker.
But I'm just being picky :v
Re: A more object-oriented approach?
Then here's a tip for you:
Code: Select all
graphics = love.graphics
graphics.draw( ... )
Re: A more object-oriented approach?
Put this at the top of your game.
for k, v in pairs(love) do _G[k] = v; end;
for k, v in pairs(love) do _G[k] = v; end;
Re: A more object-oriented approach?
touché good sir.rude wrote:Then here's a tip for you:
Code: Select all
graphics = love.graphics graphics.draw( ... )
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest