Skip to content

Jade570/p5js-fps_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p5js-fps_example

An example & class for fps(first person shooting) in p5js.

Available actions

  • first-person-camera rotation & movement(with jump)
  • first-person-shooting (for square shaped targets)
    • mouse sensitivity control

Examples

Warning & To do

  • This example only detects square object (don't care depth(z-axis))
    • make rectengular hitbox detection
  • This example only detects when camera not moved
    • generalize detection function with any camera position

Releases

No releases published

Packages

No packages published