Skip to content

First Year Academic Project- First Year Academic Project- This project I imported processing.core.PApplet to create a lab_room with three robots (triangle shape). Alice patrol around the screen, Bob bounce around and Charlie is controlled by the arrows of the keyboard. - I can control also the Speed, Size and color of all of them.

Notifications You must be signed in to change notification settings

thisilvafarias/RobotLabJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

RobotLabJava

screen shot 2018-08-17 at 12 21 03

My code does the following :
Run three robots in the window, where which one has a direfferent behaviour.

file 1 (RobotLab.java) Main Method:
There are threes objects, where they call for display, drive, speed, setColor and size of the objects

file 2 (Robots.java) Class:
Alice patrol around the screen - Control the Speed, Size and color by the keys bellow:

Speed up = w
Speed down = x
Size (lager) = p
Size (Smaller) = o
Color = a

Bob bounce around of the screen - Control the Speed, Size and color by the keys bellow:

Speed up = c
Speed down = v
Size (lager) = u
Size (Smaller) = i
Color = z

Charlie is controlled by the arrows of the keyboard - Control the Speed, Size and color by the keys bellow:

Speed up = b
Speed down = n
Size (lager) = m
Size (Smaller) = l
Color = e

Control Charlie by the arrows of the keyboard

← Left
↑ Up
→ Right
↓ Down

Stop all robots by the key bellow: To stop = y
To play back = h\

********// Compile and Run // ********

*To compile my code*

Using terminal, find the directory where the files are, so type :

javac -cp .:core.jar RobotLab.java

To compile the java file.

*To run the file type*

java -cp .:core.jar RobotLab.java

P.S. Please, do not forget to include the file core.jar in the side folder of the RobotLab and Robots

About

First Year Academic Project- First Year Academic Project- This project I imported processing.core.PApplet to create a lab_room with three robots (triangle shape). Alice patrol around the screen, Bob bounce around and Charlie is controlled by the arrows of the keyboard. - I can control also the Speed, Size and color of all of them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages