Skip to content

Commit f2ed604

Browse files
author
Joseph Kerkhof
committed
Adding in the start of the Dot class
1 parent 48f9628 commit f2ed604

File tree

2 files changed

+62
-15
lines changed

2 files changed

+62
-15
lines changed

.idea/workspace.xml

Lines changed: 47 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Dot.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import java.util.Vector;
2+
3+
class Dot {
4+
Vector position;
5+
Vector velocity;
6+
Vector acceleration;
7+
8+
int width, height = 800;
9+
10+
Dot() {
11+
position = new Vector<>(width / 2, height / 2);
12+
velocity = new Vector<>(0, 0);
13+
acceleration = new Vector<>(0, 0);
14+
}
15+
}

0 commit comments

Comments
 (0)