enigma Posted June 1, 2015 Share Posted June 1, 2015 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 Quote Link to comment Share on other sites More sharing options...
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.