RaspberryRocketeer/frontend
2022-11-29 10:53:23 +01:00
..
models added Position model 2022-11-29 10:53:23 +01:00
.gitignore initial commit 2022-11-29 09:32:09 +01:00
game.ts p5 working 2022-11-29 10:11:11 +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 Class diagram 2022-11-29 10:41:33 +01:00
tsconfig.json p5 working 2022-11-29 10:11:11 +01:00

classDiagram
Entity <|-- Raspberry
Entity <|-- Obstacle
Entity: -Position position
Entity: -int width
Entity: -int height
Entity: -update()
Entity: -draw()
Entity: -detectCollision(Entity other)
class Raspberry{
-input()
-boost()
}

class Obstacle{
-Entity pipeTop
-Entity pipeBottom
-int distanceBetweenPipes
-int padding
-resetPosition()
}

class Position{
-int _x
-int _y

+get x()
+set x()
+get y()
+set y()
}