Skip to content

Commit

Permalink
(#20) Remove oldhelloworld, update examples to reflect main changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasstarsz committed Jul 4, 2021
1 parent a0793f3 commit 773c3b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
import java.awt.Color;
import java.awt.Font;
import java.awt.event.KeyEvent;
<<<<<<< HEAD
import java.nio.file.Path;
=======
>>>>>>> 944c9fc (fix issues with bullethell example)
import java.util.HashMap;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ private void createBullet(GameObject player) {
Pointf cannonFront = Pointf.rotate(startingPoint, rotationAngle, rotationPoint);
Pointf[] bulletMesh = DrawUtil.createBox(cannonFront, BulletSize);

Polygon2D bullet = (Polygon2D) Polygon2D.create(bulletMesh)
.withFill(Color.red)
.build()
Polygon2D bullet = (Polygon2D) Polygon2D.fromPoints(bulletMesh)
.setFill(Color.red)
.addBehavior(bulletMovementScript, gameScene)
.<GameObject>addTag(Tags.Bullet, gameScene);

Expand Down

0 comments on commit 773c3b8

Please sign in to comment.