Jump to content

keeping score


enigma
 Share

Recommended Posts

Hello,

I’m new to html5 game development. I have been working through a tutorial I found in a magazine (web designer). After completing the tutorial I wanted to add a scoring feature, but I can’t seem to wrap my head around this.

 

It’s a simple game based off the PIXI fly game, a pixi fly’s through a level, dodging pipes. What I want to do is add a point for every pipe passed and when the game ends it adds the points up and displays the score.

 

Has anyone done something similar to this, where they can point me in the right direction? I know I need to write a loop, but I’m not sure what objects/ data to loop through. Any pointer or advice would be a lot of help.

 

I have attached the source files, if anyone wants to take a look. I can also post a link if needed. 

 

Thanks!

 

 

 

game.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...