cubei / flappycow Goto Github PK
View Code? Open in Web Editor NEWAndroid game in "Flappy Bird" Style
License: MIT License
Android game in "Flappy Bird" Style
License: MIT License
When you click on the play was going to play take-up
Upper-click a few times and took
's Exception (Force close)
Instead of updating the game with a constant timer tick, a while loop should be used with the option of frame skipping.
At the moment bitmaps are scaled to the correct size and drawn in that size.
Instead the bitmaps should just be drawn in the correct size and not scaled up, because of the memory usage.
hi cubei,
first I want to said thank you for release it as open source..
then, do you have another instructions to make the source code run?
I got android library projects cannot be run..I've remove (comment) google sign in button from source code
Instead of shared preferences a SQLite DB should be used.
When the orientation changes (e.g. tablet lockscreen -> landscape) onCreate method is recalled. This resets the game.
At the moment the game threads does all the work and is then put to sleep for a few milliseconds. The time needed for the "work" depends on the CPU power of the device. So a low performance device has a lower over all game speed than a high-end-device.
Instead a timer should be used, so the work runs at a constant frequency.
I was informed that the bitmaps loaded in alpha8 encoding could course a problem. Switching to argb_8888 solves this.
In Util.java I have functions to load bitmaps in alpha8 decoding. I saved the PNGs in alpha8, so there won't be any quality loss when loaded, but it will need significant less memory, so this is the reason I used it.
Alpha8 = 8 Bit per pixel
argb = 4x8 Bit = 32 Bit per pixel
Hi @cubei,
The MD states the latest version as 3.0
, while the current .apk is already at 3.1.1
- this might confuse and hinder new contributors.
App crashed when I check the Highscore after I played and loss
Launch the app.
Sign in
Play the game and loss
then check the Highscore immediately.
I expect that I should be able to check the Highscore without any issue
Device: [itel]
Version [6.1]
App version [3.3.0]
I will add the log soon.
Please add this game to F-Droid. A thread has been created for it at https://f-droid.org/forums/topic/flappy-cow/
Importing this into Eclipse it is riddled with errors
1).Could you update the game to play in Horizontal View ?
2).Could you decrease a foreground (fg) speed a bit slower ?
3).Could you add a life coin to the game when the cow eats ?
4).Could you animate both background and foreground images in order to look amazing when playing ?
App crashed when I check the Achievements after I played and loss
Launch the app.
Sign in
Play the game and loss
then check the Achievements immediately.
I expect that I should be able to check the Achievements without any issue
Device: [itel]
Version [6.1]
App version [3.3.0]
05-06 09:00:14.820 30607 30607 E AndroidRuntime: Process: com.quchen.flappycow, PID: 30607
05-06 09:00:14.820 30607 30607 E AndroidRuntime: java.lang.IllegalStateException: GoogleApiClient must be connected.
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at com.google.android.gms.common.internal.Preconditions.checkState(Unknown Source)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at cappycow.StartscreenView.onTouchEvent(StartscreenView.java:203)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.View.dispatchTouchEvent(View.java:9307)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2561)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2199)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2561)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2199)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2561)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2199)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2419)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1744)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.app.Activity.dispatchTouchEvent(Activity.java:2776)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2380)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.View.dispatchPointerEvent(View.java:9533)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4230)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4096)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3695)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3661)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3787)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3669)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3844)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3695)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3661)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3669)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5922)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5896)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5857)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6025)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.os.MessageQueue.nativePollOnce(Native Method)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.os.MessageQueue.next(MessageQueue.java:323)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5452)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
05-06 09:00:14.820 30607 30607 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)```
Why not complete this game? Packages Where do I download
I am using intellij
Getting this error
Could not find com.android.tools.build:gradle:3.0.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.jar
Required by:
project :BaseGameUtils
Open File
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.