Giter Site home page Giter Site 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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-breakout's Issues

Game doesn't end if you go home in the middle

What steps will reproduce the problem?
1. Start game in "never lose ball" mode, let it knock out a couple of bricks.
2. Hit the "home" button.
3. Return to the game using the "recent apps" menu.
4. Wait until the ball knocks out the last brick.

The game should present the "you're winner!" text and end.  Instead, the ball 
just keeps bouncing.

Original issue reported on code.google.com by [email protected] on 30 Nov 2012 at 1:32

how to implement the recording patch to this game?

i hope it is the right place,
i would like to import this project with the recording patch,
it will help me a lot.

any guide?it should be real complicated for someone who dont know how to use 
pathces?

Thanks,
Yarin


Original issue reported on code.google.com by [email protected] on 21 Dec 2013 at 12:07

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.