Skip to content

Commit

Permalink
added a spring
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythical-Atlas committed May 17, 2020
1 parent e11c37a commit 06a1029
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sonic Fan Game/src/scenes/MainScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ public void init() {
placeRing(28, 9, 9 + 4 * 2, 0 + 4 * 2, 0, 0);

springs = new Spring[]{
new Spring(35 * SCALE * 96 + 8 * 8 * SCALE + 16 * SCALE * 96 - 14 * SCALE, 6 * SCALE * 96 + 16 * SCALE * 96 + 0.5 * SCALE * 96 - 33 * SCALE, PI / 2, 30, 0),
new Spring(56 * SCALE * 96 + 10 * 8 * SCALE + 16 * SCALE * 96 - 14 * SCALE, 10 * SCALE * 96 + 16 * SCALE * 96 + 0.5 * SCALE * 96 - 33 * SCALE, PI / 2, 25, 0),
new Spring(88 * SCALE * 96 + 10 * 8 * SCALE + 16 * SCALE * 96 - 14 * SCALE, 16 * SCALE * 96 + 16 * SCALE * 96 + 0.5 * SCALE * 96 - 33 * SCALE, PI / 2, 25, 0),
new Spring( 35 * SCALE * 96 + 8 * 8 * SCALE + 16 * SCALE * 96 - 14 * SCALE, 6 * SCALE * 96 + 16 * SCALE * 96 + 0.5 * SCALE * 96 - 33 * SCALE, PI / 2, 30, 0),
new Spring( 56 * SCALE * 96 + 10 * 8 * SCALE + 16 * SCALE * 96 - 14 * SCALE, 10 * SCALE * 96 + 16 * SCALE * 96 + 0.5 * SCALE * 96 - 33 * SCALE, PI / 2, 25, 0),
new Spring( 88 * SCALE * 96 + 10 * 8 * SCALE + 16 * SCALE * 96 - 14 * SCALE, 16 * SCALE * 96 + 16 * SCALE * 96 + 0.5 * SCALE * 96 - 33 * SCALE, PI / 2, 25, 0),
new Spring(125 * SCALE * 96 + 10 * 8 * SCALE + 16 * SCALE * 96 - 14 * SCALE, 18 * SCALE * 96 + 16 * SCALE * 96 + 1 * SCALE * 96 - 33 * SCALE, PI / 2, 25, 0),
};

badniks = new Badnik[]{
Expand Down

0 comments on commit 06a1029

Please sign in to comment.