Ameen AltajerAI & Search Engineering

Archive

Precious Engine

A 2D game engine written from scratch for Android, started September 2010 and released under the LGPL. The documentation below is preserved as it was published.

Precious Engine is a game engine I developed for Android. I started working on my game and the engine way back in September 2010, and it took me several months to do it in my free time. I built the game using a simple framework that I made from scratch. I'm happy that I managed to complete both projects, given that I was struggling with my job so hard.

You have free access to the engine source code, the engine documentation and the code documentation, so if you're bored you're going to have a great time reading the material.

The engine was released under the LGPL, and it went on to power the game Precious Drop.

Documentation

Nine chapters.

  1. 01ForwardWho the engine is dedicated to, and why a developer in Bahrain wrote one.
  2. 02LicenseReleased under the LGPL, with a request attached.
  3. 03IntroductionWhy fragmentation across Android hardware pushed him to write an engine from scratch.
  4. 04Engine FeaturesEight deliberately simple subsystems, scoped to what Precious Drop actually needed.
  5. 05Engine's HierarchyAn object-oriented tree with a single Entity base class at the root.
  6. 06Engine's ComponentsClass by class through the core, GUI, input and extra components.
  7. 07Engine IntegrationEmbedding the engine in an Android activity through a SurfaceView.
  8. 08Using Precious EngineWhy there is no level editor, and how to organize a scene so Android can reclaim it.
  9. 09ContributingAn open invitation, written while holding down a day job.

Back to Work