sigonasr2 a19330dbd0 README detailing
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2022-11-28 17:58:05 -06:00
2022-11-28 17:50:49 -06:00
2022-11-28 17:50:49 -06:00
2022-11-28 13:03:32 -06:00
2022-11-28 17:50:49 -06:00
2022-11-28 11:48:13 -06:00
2022-11-28 17:50:49 -06:00
2022-11-28 17:58:05 -06:00
2022-11-28 17:50:49 -06:00
sig
2022-11-28 10:29:34 -06:00
tmp
2022-11-28 10:29:34 -06:00

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.

Window

Window Width, Height, and the title can all be customized.

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.

Sprites

Sprites can be placed in the sprites folder and referenced accordingly. Instantiating a new Sprite class or AnimatedSprite class with the name will auto-load it in. Animated Sprites need their base width and height defined, the engine will figure out the animation frames for the rest of the image. DrawAnimatedSprite functions request what index of the animation to draw, you feed that yourself. Only horizontal animation strips are supported by default.

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).

Description
Provides a screen to draw pixels to with a basic rendering update loop and accepts user input
Readme 18 MiB
Languages
GLSL 48.3%
Java 43.7%
Shell 8%