Advice for game-making

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Bindie
Party member
Posts: 151
Joined: Fri Jan 23, 2015 1:29 pm

Re: Advice for game-making

Post by Bindie »

Awesome. Developers diary, why not.
Bindie
Party member
Posts: 151
Joined: Fri Jan 23, 2015 1:29 pm

Re: Advice for game-making

Post by Bindie »

Hey! What's the most optimum way of drawing characters?

Say I have this:

Code: Select all

npc = {alert = false, img = {still, attack}}
As fast as the npc turns alert (within some random vector distance) he changes appearance.

This question of course just applies to unanimates till images but, in the love.draw function, should there just be a current_image_state that is drawn and then I program what that image should be in the love.update function? Basically, this is my question.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest