RaspberryRocketeer/frontend
2022-12-06 13:48:47 +01:00
..
models raspberry now has an image 2022-12-06 13:48:47 +01:00
resources added images 2022-12-06 11:33:45 +01:00
.gitignore initial commit 2022-11-29 09:32:09 +01:00
game.ts raspberry now has an image 2022-12-06 13:48:47 +01:00
global.d.ts p5 working 2022-11-29 10:11:11 +01:00
index.html p5 working 2022-11-29 10:11:11 +01:00
package-lock.json p5 working 2022-11-29 10:11:11 +01:00
package.json p5 working 2022-11-29 10:11:11 +01:00
README.md Formatted files, added types and updated class diagram 2022-12-06 10:36:14 +01:00
tsconfig.json added images 2022-12-06 11:33:45 +01:00

classDiagram
Entity <|-- Raspberry
Entity <|-- Obstacle
Entity <|-- Pipe
Entity: -number fill
Entity: +Position position
Entity: +number width
Entity: +number height
Entity: +abstract update()
Entity: +draw()
Entity: -detectCollision(Entity other)

class Raspberry{
-number lift
-number gravity
-static number maxVelocity
+number velocity

-applyGravity()
-forceBoundaries()
-boost()
+update()
}

class Obstacle{
-Entity pipeTop
-Entity pipeBottom
-number distanceBetweenPipes
-number padding
-number speed
-static number startX

-randomRange()
+resetPosition()
+update()
+draw()
}

class Pipe {
+update()
}

class Position{
+int x
+int y
}