Git Product home page Git Product logo

android-breakout's Introduction

Android Breakout v1.0.2

(This was previously hosted on code.google.com.)

This is an Android implementation of the classic brick-breaking game. This is intended primarily as sample code, providing an example of a simple but complete game. It will run on Froyo (API 8) and later.

Some of what you'll find in the sources:

  • Use of OpenGL ES 2.0 for a 2D game, including flat-shaded and texture-mapped elements.
  • Smooth animation that doesn't require a fixed device refresh rate (game state advances according to how much time has elapsed since the previous draw).
  • Use of GLSurfaceView, with correct handling of multiple threads.
  • Interaction with the Android application framework, including game state save & restore on Activity pause/resume, and handling of screen rotation.
  • Forwarding of touch events to the game loop.
  • GL rendering of locale-specific anti-aliased text. (A rudimentary Spanish translation is included.)
  • Sound effect generation and playback.
  • Separation of core game logic from Android-specific elements.
  • Configurable skill levels, saved preferences, and saved high score.
  • Two-panel user interface that rearranges for landscape vs. portrait.
  • Basic 2D collision detection.
  • All code is in Java -- no native code in the app.

The game works well on tablets but it's hard to play on phones because of the smaller display size.

screengrab

Some information about the code can be found in the associated wiki pages.

Updates

v1.0.1 (2012/12/07) - fixed a bug that could make it impossible to win

v1.0.2 (2013/06/18) - minor efficiency improvements

android-breakout's People

Contributors

fadden avatar

Watchers

 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.