RTS-ish system for multiple 'entities'
RTS-ish system for multiple 'entities'
Whatever you call it, think RTS or grunt enemies, I need a LOT of the exact same 'entity' as I call it on the screen at once. Ya it's just a table with x and y values and some images and of course it's own think/draw function. Now I would just call draw function in the normal love.draw but that only let's me make one of them, if I add more it will use a hivemind (exact same values I guess) or something.
while true do end;
Re: RTS-ish system for multiple 'entities'
Uhm, is there a question?
Re: RTS-ish system for multiple 'entities'
Read up on lua OOP (object orientated programming)!RonanZero wrote:Whatever you call it, think RTS or grunt enemies, I need a LOT of the exact same 'entity' as I call it on the screen at once. Ya it's just a table with x and y values and some images and of course it's own think/draw function. Now I would just call draw function in the normal love.draw but that only let's me make one of them, if I add more it will use a hivemind (exact same values I guess) or something.
Who is online
Users browsing this forum: No registered users and 5 guests