Git Product home page Git Product logo

ngdroidapp's Introduction

NgdroidApp

I teach game programming here in Gamelab Istanbul (http://gamelab.istanbul) and in 2 universities. I created this simple Java framework to use in my classes. Thus, instead of spending time with configuring Android, the students can start to write their game codes asap.

The framework is an Android Studio project. You can fork it, and then, you can clone your fork into your computer via the Android Studio.

The framework has got;

  • GameActivity (the entry point),
  • AppManager (SurfaceView),
  • Main loop (main thread),
  • NgApp (the root class),
  • CanvasManager and
  • GameCanvas.

All you have to do is opening GameCanvas and start coding your game.

The framework is designed in the MVC pattern. If you need to create new classes for your menus and other views, you can simply extend BaseCanvas and set this new child canvas as the current canvas.

When you want to generate your own APK;

  • Change the app name in the res/values/strings.xml,
  • Change package com.mycompany.myngdroidapp to your own package name,
  • Put your game icon into res/mipmap folders,
  • Modify the app/build.graddle and
  • Modify AndroidManifest.xml.

There are still a lot of rooms to develop. Contributions are really appreciated.

This framework is licenced with MIT licence.

ngdroidapp's People

Contributors

noyanc avatar mkt4ever avatar

Watchers

James Cloos avatar  avatar

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.