Skip to content

katarzyna-kw/puffy-cat-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puffy Cat Game

Table of contents

Overview

Created in the style of Flappy Bird, Puffy Cat allows the user to play as Puffy the Cat while he dodges obstacles. A local best score is stored and displayed on the lefthand side during play while the current score is displayed on the right.

Screenshot

Links

Puffy Cat Game

My process

Built with

  • HTML5
  • Javascript
  • CSS / Tailwind CSS

Structure

The Javascript code is separated into three files. Puffy-cat.js holds the puffy sprite class and its methods. Obstacles.js holds the obstacles class and its methods as well as the function that handles obstacles by creating and removing them. Flappy.js holds the rest of the game logic -- handling the background of the HTML5 canvas, initializing and starting each game, event listeners for holding down the up and down arrow keys and the start button, and storing/displaying the best score in local storage.

Progression

In the first phase, I designed and coded the game to allow play. In the second phase, I added the functionality of storing and then displaying the local best score to enhance the user experience and engagement.

A potential next phase may be storing and displaying the top 3 scores overall for all users.

Useful resources

These are helpful resources that inspired me and helped me with creating this game:

Game Creator

About

"Puffy Cat" version of Flappy Bird game using HTML5 canvas and Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published