Skip to content

MetatransApps/Android_LIB_Commons2D

Repository files navigation

License

The license is GPL-2.0-only

Overview

This is a simple 2D Graphics Framework. After git clone, this library for Android, could be imported directly to Android Studio. Then it can be extended and used in Java programming language from your Android projects.

It represents a library, which is simple, light and small, without any other dependencies.

Not powerful as Unity 3D or similar frameworks, but still enough to build lightweight 2D games.

How it works? Implementation details ...

It works on low level by drawing pixels, lines, circles, bitmaps/images on android.graphics.Canvas Also painting and filling out shapes with given color. It is working fast as it relies on the double buffering approach implemented by the build-in android.graphics.* package.

Of course, it supports Camera view and related features. The camera representation supports static camera (like in Gravity and Balloons games) as well as moving camera (like in the Maze game)

Exemplary games, uploaded to various App Stores, which use this Framework and has its dependency:

How to extend it and use it for game development?

Here are 2 examples, which you could find in the model package of these projects: