Store your configuration JSON file named config.json
in //src/main/resources
.
It must specify:
-
"floorHeight"
-
"width"
-
"height"
-
"stickman": {
"x" "size" "jumpHeight"
}
-
"cloudVelocity"
-
"enemy": {
You may leave this block empty. "enemyType": [] "x": [] "y": []
}
-
"platform": {
You may leave this block empty. "platformType": [] "x": [] "y": []
}
-
"finish": {
"x": "y":
}
See the default config.json
in //src/main/resources
for more details.
- Run the command
gradle build
. - Run the command
gradle run
.
The style guide used is: https://google.github.io/styleguide/javaguide.html
Collision detection algorithm in checkCollision()
method in CollisionStrategy
class: University of Sydney (2019). Software Design Phase. [online] Retrieved from
https://canvas.sydney.edu.au/courses/16757/assignments/133185