heyskylark / robotkittenearthguardians Goto Github PK
View Code? Open in Web Editor NEWA 2D game done with only default Java libraries. Art, sound FXs, and all the game functions done by me.
A 2D game done with only default Java libraries. Art, sound FXs, and all the game functions done by me.
Write different movement patterns and they are chosen for the enemy with a random int. To create variable path finding on the field.
When collision is detected push vector in the opposite direction. (ie. If right hand side collides with left hand side move to the left).
Take pathfinding out of WaterBalloon class. Put in pathfinding class in Mobs folder.
When I javac MainGame.java I get:
MainGame.java:18: package robotkittenearthguardians.input does not exist
import robotkittenearthguardians.input.Mouse;
^
MainGame.java:19: package robotkittenearthguardians.gameState does not exist
import robotkittenearthguardians.gameState.GameState;
^
MainGame.java:20: package robotkittenearthguardians.gameState does not exist
import robotkittenearthguardians.gameState.StartScreenState;
^
MainGame.java:21: package robotkittenearthguardians.graphics does not exist
import robotkittenearthguardians.graphics.Screen;
^
MainGame.java:22: package robotkittenearthguardians.input does not exist
import robotkittenearthguardians.input.Keyboard;
^
MainGame.java:36: cannot find symbol
symbol : class Screen
location: class robotkittenearthguardians.MainGame
private Screen screen;
^
MainGame.java:37: cannot find symbol
symbol : class Keyboard
location: class robotkittenearthguardians.MainGame
private Keyboard key;
^
MainGame.java:38: cannot find symbol
symbol : class Mouse
location: class robotkittenearthguardians.MainGame
private Mouse mouse;
^
MainGame.java:39: cannot find symbol
symbol : class GameState
location: class robotkittenearthguardians.MainGame
GameState currentState;
^
MainGame.java:53: cannot find symbol
symbol : class Screen
location: class robotkittenearthguardians.MainGame
screen = new Screen(screenWidth, screenHeight, pixels, image);
^
MainGame.java:55: cannot find symbol
symbol : class Keyboard
location: class robotkittenearthguardians.MainGame
key = new Keyboard();
^
MainGame.java:57: cannot find symbol
symbol : class Mouse
location: class robotkittenearthguardians.MainGame
mouse = new Mouse();
^
MainGame.java:61: cannot find symbol
symbol : class StartScreenState
location: class robotkittenearthguardians.MainGame
currentState = new StartScreenState(key);
Not falling off the stage while wandering.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.