Created
June 6, 2014 16:20
-
-
Save codepaladin/7d7afd56df17468abd24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- add a group to contain the character and healthbar | |
characterGroup = display.newGroup( ) | |
characterGroup.x = display.contentCenterX | |
characterGroup.y = display.contentCenterY | |
-- set maxHealth and currentHealth values | |
maxHealth = 100 | |
currentHealth = 100 | |
-- draw a character to the screen | |
dwarf = display.newImage("dwarf.png" ) | |
characterGroup:insert( dwarf ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment