Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celeroncoder/java-game-engine
Game Engine in Java with LWJGL
https://github.com/celeroncoder/java-game-engine
game-engine glfw glsl-shaders java lwjgl opengl shaders
Last synced: 4 days ago
JSON representation
Game Engine in Java with LWJGL
- Host: GitHub
- URL: https://github.com/celeroncoder/java-game-engine
- Owner: celeronCoder
- License: gpl-3.0
- Created: 2021-08-23T05:29:39.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2021-09-30T12:47:34.000Z (about 3 years ago)
- Last Synced: 2023-03-04T18:27:40.910Z (over 1 year ago)
- Topics: game-engine, glfw, glsl-shaders, java, lwjgl, opengl, shaders
- Language: Java
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# java-game-engine
Game Engine in Java.[![CodeFactor](https://www.codefactor.io/repository/github/khushalbhardwaj-0111/java-game-engine/badge)](https://www.codefactor.io/repository/github/khushalbhardwaj-0111/java-game-engine)
# fade-to-black
- It's a desgined test for keyListner utility class.
- Fades the background to black when *space bar* is pressed.```java
// initialize uitl vars
private float r, g, b, a;
private boolean fadeToBlack = false;// sets the colour of the initial window to white
private Window() {
this.width = 1920;
this.height = 1080;
this.title = "Jada";r = 1;
g = 1;
b = 1;
a = 1;
}glClearColor(r, g, b, a);
if (fadeToBlack) {
r = Math.max(r - 0.01f, 0);
g = Math.max(g - 0.01f, 0);
b = Math.max(b - 0.01f, 0);
a = Math.max(a - 0.01f, 0);
}if (KeyListener.isKeyPressed(GLFW_KEY_SPACE)) {
fadeToBlack = true;
}
```#### Note - No Refrence to the game-engine only for testing purpose and fun.