Skip to content

craigprotzel/space-flyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPACE-FLYER

(play HERE)

Built with:

Setup:

  • Download an IDE such as Sublime Text
    • consider using a javascript linter
    • Sublime linter install intructions
      • Install Package Control
      • Press shift+command+P and search for "Install Package"
      • Search for "Sublime Linter" and press enter to install
  • Create initial file structure
    • download this github repo
    • copy the 'space_flyer_start' folder

Coding Steps:

  • Create page layout

    • create p5 canvas
    • add game title to the page
  • Create the player

    • create a sprite
    • call drawSprites() method inside the draw() function
    • add movement with keyDown() method
    • add 'check edges' logic
  • Create the board

    • create a group
    • create sprites for the board
    • add sprites to the group
  • Add collision detection using the .collide() method

  • Add game mechanics

    • add timer logic
    • add win/lose logic
    • add restart logic
  • Extra

    • use a local host to serve the sketch
    • add an image for the player character
    • add sound
    • add speech

About

A 2D game built with p5.js and the p5.play library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published