Giter Site home page Giter Site logo

kasperhbo / azurite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azurite-engine/azurite

0.0 0.0 0.0 40.73 MB

Azurite Game Engine is a 2D Java game engine built on top of LWJGL.

Home Page: https://azurite-engine.github.io

License: MIT License

Java 98.13% GLSL 1.87%

azurite's Introduction

Azurite

Azurite is a 2D Java game engine built by the Games with Gabe Discord/YouTube community.

Explore the docs ·· Watch the introduction video ·· Check the Project Board

Table of Contents

Features

  • Modern OpenGL through the LWJGL 3 library for fast GPU rendering.
  • Entity Component System
Name Support Render Context
Windows Working OpenGL 330
macOS Working OpenGL 3.3 Core
Debian / Ubuntu Working OpenGL 330
Arch / Manjaro Working OpenGL 330
Other Distros Planned OpenGL 330
FreeBSD Planned -
Android Planned OpenGL ES
IOS Not Planned -

Built With

Code Samples

BoilerPlate Code:

public class Main extends Scene {
	public static void main(String[] args) {
		Engine.init(1920, 1080, "Azurite Engine Demo In Comment", 1.0f);
		Engine.scenes().switchScene(new Main());
		Engine.showWindow();
	}

	public void awake() {
		Graphics.setDefaultBackground(Color.BLACK);
		camera = new Camera();
		...
	}

	public void update() {
		...
	}
}

Simple example with sprites:

public class Main extends Scene {
	GameObject player;
	Sprite s;

	public static void main(String[] args) {
		Engine.init(1920, 1080, "Azurite Engine Demo In Comment", 1.0f);
		Engine.scenes().switchScene(new Main());
		Engine.showWindow();
	}

	public void awake() {
		Graphics.setDefaultBackground(Color.BLACK);
		camera = new Camera();

		player = new GameObject();
		s = new Sprite("src/assets/sprite.png");
		player.addComponent(new SpriteRenderer(s, new Vector2f(100)));
	}

	public void update() {
		if (Keyboard.getKeyDown(GLFW.GLFW_KEY_SPACE))
			player.transform.add(new Vector2f(1, 0));
	}
}

Getting Started

Prerequisites

  • OpenGL capable graphics card (minimum core 330)
  • OpenGL capable graphics driver
  • Java 11

Project Setup

To begin contributing, create a fork of this repository. Using intellj, import this project from existing sources as a gradle project. Build gradle, then run the Main scene (located in the scenes package). Follow this link for tutorials on cloning and importing to either Intellj or Eclipse.

Documentation

License

Copyright (c) 2023 MIT License

Contact

Discord Server in the #azurite-development channel

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.