Git Product home page Git Product logo

thisilvafarias / robotlabjava Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

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.

Java 100.00%

robotlabjava's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.