A Java Swing based game engine

Overview

faypixelengine

A Java Swing based game engine

  • What is it?

A Java game engine that uses swing and can be used to develop interactive games. The idea for this project was inspired by the excellent tutorials of OneLoneCoder and his famous olcpixelgameengine. Please checkout his youtube channel at Javidx9. I would also like to attribute this work to the great Daniel Shiffman - The Coding Train which inspired me as well. FayPixelEngine is no where close to olcpixelengine (which is written in C++) but is close enough to get you started with game development in Java. I hope this tool will be useful for beginners as well as intermediate developers alike.

  • Technical requirements

This project was tested with Java v13 on Windows 10, but it should run with 1.8 as well.

  • Setup

Import this repo into Eclipse or your favourite Java IDE. Add the json-simple-1.1.1.jar dependency.

  • Getting started

Run the src/helloworld examples to get started. Essentially, here is all you need:

package helloworld;

import java.awt.Color;

import fay.original.FaySansBuffer;

@SuppressWarnings("serial")
public class HelloWorldSkeleton extends FaySansBuffer {
	
	public HelloWorldSkeleton(int len, int hei, int pX, int pY, String title) {
		 
	 super(len,hei,pX,pY,title);
	
	}
	
	public static void main(String args[]) {
		
	 new HelloWorldSkeleton(400,400,1,1, "Bare bones");
	 
	}

	@Override
	public boolean OnUserUpdate(float fElapsedTime) {
		
		clearConsole(Color.BLUE);
		
		return true;
	}

	@Override
	public boolean OnUserCreate() {
		return true;
	}
	
}
You might also like...

Snake-Game - A simple snake game written in java.

Snake-Game - A simple snake game written in java.

What's this? A simple snake game written in java. How to play Download the latest release. Ensure that a compatible java runtime is installed (optimal

Oct 31, 2022

The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

Sep 11, 2022

A basic representation of the 0-player game, "Game-of-Life", a simple example of basic cellular automata

A basic representation of the 0-player game,

Game-Of-Life-Basic A basic representation of the 0-player game, "Game-of-Life", a simple example of basic cellular automata. A cellular automaton is a

Oct 27, 2022

HackLights - Simple framebuffer based lighting engine for libGDX

HackLights - Simple framebuffer based lighting engine for libGDX

HackLights Simple framebuffer based lighting engine for libGDX. Example See: Sample Code Sample Light Images: Installation Open or create gradle.prope

Dec 5, 2022

Kingdoms Wars - a turn-based strategy game created with Java.

Kingdoms Wars - a turn-based strategy game created with Java.

Kingdoms Wars is a turn-based strategy game created with Java. The game is loosely based on the Punic Wars.

Feb 7, 2022

An area maximisation game based on the idea of merging convex shapes.

An area maximisation game based on the idea of merging convex shapes.

Convex Merger Convex Merger is an area maximisation game based on the idea of merging convex shapes. The goal of the game is to claim as large an area

Dec 15, 2022

console-based netrunning game

ALT.NET The build is still in semi-active development ABOUT Alt.net is a netrunning CLI game made for fun. It combines cryptocurrency concept and adds

Nov 7, 2022

A turn-based strategy game

Stalemate Game This is a turn-based strategy game. Support You can report issues in issue tracker. Contributing Contributions are welcomed. Building T

Jul 6, 2022

Triple X is a 2D space game based on The Three-Body Problem

Triple X is a 2D space game based on The Three-Body Problem

Triple X is a 2D space game based on The Three-Body Problem, which is the famous sci-fi novel wrote by Cixin Liu.

Feb 19, 2022
Owner
null
Golden Axe (1989) game implemented in java using only standard libraries (Java 2D, Swing, AWT & Java Sound API)

Golden Axe (1989) game implemented in java using only standard libraries (Java 2D, Swing, AWT & Java Sound API), so no external libraries required. Video: https://youtu.be/uevIVLNhQqs

Leo 101 Jul 21, 2022
My Game Engine tested via my Cubecraft Game

My Game Engine tested via my Cubecraft Game Install: mvn -P {your OS name} clean install mvn -P mac clean install mvn -P linux clean install mvn -P wi

null 30 Oct 3, 2022
A simple puzzle game made with Unity to practice the game engine

A simple puzzle game made with Unity to practice the game engine.

Eyüb Salih Özdemir 1 Mar 30, 2022
An arcade game project which made using java and swing for graphics

Arcade_Game_Development This is an arcade game project which made using java and swing for graphics. Meteor Dodge Here you have to dodge the meteor an

Md. Shakib Shahariar Junayed 1 May 25, 2022
Jetserver is a high speed nio socket based multiplayer java game server written using Netty and Mike Rettig's Jetlang.It is specifically tuned for network based multiplayer games and supports TCP and UDP network protocols.

Note New version of Jetserver is called Nadron and is in a new netty 4 branch of this same repo. JetServer is a java nio based server specifically des

Abraham Menacherry 1.2k Dec 14, 2022
A Java Game Engine created in Java with LWJGL!

?? Suffler Engine Suffler Game Engine is an engine created in java using OpenGL to Graphics. Currently being developed at Eclipse, and Visual Studio C

Suffler Engine 2 Jul 23, 2022
Java / JavaFX / Kotlin Game Library (Engine)

About JavaFX Game Development Framework Why FXGL? No installation or setup required "Out of the box": Java 8-15, Win/Mac/Linux/Android 8+/iOS 11.0+/We

Almas Baimagambetov 3k Jan 2, 2023
LITIENGINE is a free and open source Java 2D Game Engine

LITIENGINE is a free and open source Java 2D Game Engine. It provides a comprehensive Java library and a dedicated map editor to create tile-based 2D games.

Gurkenlabs 572 Jan 7, 2023
Orbital a java 2D game engine

Orbital Orbital is a under-development 2D game engine. Installation Orbital is avaliable on Jitpack. See below for the installation: Gradle allproject

null 22 Dec 12, 2022
BattleShip-Game - This repository contains the code of the BattleShip (Bataille Navale) game programmed in Java.

Bataille Navale Auteur : SABIL Mohamed Amine Comment générer la documentation ? Placez vous dans le sous-dossier src : pour générer la documentation d

Mohamed Amine SABIL 1 Jan 4, 2022