|
2 years ago | |
---|---|---|
Java/scripts | 2 years ago | |
bin | 2 years ago | |
sprites | 2 years ago | |
src/sig | 2 years ago | |
utils | 2 years ago | |
JavaProjectTemplate_0.0a.zip | 2 years ago | |
README.md | 2 years ago | |
manifest | 2 years ago | |
runGame.sh | 2 years ago | |
sig | 2 years ago | |
tmp | 2 years ago |
README.md
PixelEngine
A small pixel-based game / rendering engine made in Java highly influenced and similar to the olcPixelGameEngine.
Usage:
Main engine file is in JavaProjectTemplate.java
. If you choose to rename this file you should probably have your IDE refactor it so all references change accordingly. Better to just leave it as-is.
You will also have to update the sig
script with the new PROJECT_NAME
value.
Drawing
You will find all possible drawing features under the game
Panel object that is initialized for you. Draw commands all start with Draw
. The example program contains quite a few of the possible draw commands available.
Input
Mouse input is handled from the Mouse
static instance. Can poll for Held
,Pressed
, and Released
status of the mouse.
Keyboard input is handled much the same way with the Key
static instance. Also has Held
,Pressed
, and Released
statuses per key. Keycodes come from the Java Swing KeyEvent
class (ex.KeyEvent.VK_UP
).