Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Moon70/LunarEngine
This is a very primitive graphics engine, using a simple integer array as chunky-buffer.
https://github.com/Moon70/LunarEngine
demoscene java
Last synced: 3 months ago
JSON representation
This is a very primitive graphics engine, using a simple integer array as chunky-buffer.
- Host: GitHub
- URL: https://github.com/Moon70/LunarEngine
- Owner: Moon70
- Created: 2020-04-05T07:47:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-12T08:11:16.000Z (over 4 years ago)
- Last Synced: 2024-04-16T21:27:30.044Z (7 months ago)
- Topics: demoscene, java
- Language: Java
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-demoscene - LunarEngine - This is a very primitive graphics engine, using a simple integer array as chunky-buffer. (Demomaking / Frameworks, Libs & Engines)
README
# LunarEngine
Short :
This is a very primitive graphics engine, using a simple integer array as chunky-buffer. Setting a pixel on screen means writing it´s RGB value at the right position in this array.
This is neither best practice nor state of the art. It was created just for fun (and in fact it was fun creating it), just for personal reasons, to play around, and **i never ever intended to make this public** :-).
However, my contribution to the [Revision 2020](https://2020.revision-party.net) Demoscene event is based on this engine, and because i decided to make the demo open source, the engine had to become open source, too.
Long:
When learning Java in 2006, i recreated a game i did in 1989 using AmigaBasic. Using the Java Swing framework, the code was full of `graphics.drawImage`calls.
It was written for Java1.4, and worked as expected. Then came Java1.5, and still everything was fine.
Then came Java1.6, and BAMM, total flicker chaos. No doubt, there must be a bug in the game, maybe i´m using some API in a wrong way. Carefully reading the release notes of both Java1.5 and Java1.6 didn´t help.
Instead of wasting too much time tracing the bug, soon an idea was born: Why not replace all those `drawImage` calls with just one,- drawing only ONE fullscreen image, and using this image (it´s integer array) as chunky buffer.
Here is the result.
Later i recreated another game i did in 1992 on Amiga using assembly, and it worked just fine. That was in 2017.
And finally, in summer 2019, i discovered [Coda](https://www.pouet.net/prod.php?which=80998 "Pouet"), the **Revision 2019** contribution by my Abyss fellows, and i asked myself: Am i crazy enough to try to make a demo for **Revision 2020** based on this engine? Yes i am!