Great. I also added the KeyboardObserver class, which we'll use later.
Study it carefully. It will come in handy.
Let's start with the simplest thing: the Mouse class.
The mouse won't move. It will have only coordinates and nothing else.
Add two private fields to the Mouse class: int x and int y.
Snake (part 3)
- 6
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet