GithubHelp home page GithubHelp logo

flappycow's Introduction

Flappy Cow

Banner

Flappy Cow is an Android game in "Flappy Bird" Style. Since Nguyen Ha Dong, the developer of "Flappy Bird", anounced the end of his loved but also hated game I uploaded this Open Source game, so you have an alternative to fulfill your addiction.

Initially called Flappy Cow, it has now(v.1.83) been renamed to FlutterCow because of Googles policy on the word Flappy in app names

Make sure to check out Space Cowboy too!

Screenshot

Sceenshot Flappy Cow Sceenshot Flappy Cow

Google Play Store

Get it on Google Play

How-to play

  • Tap screen to increase altitude
  • Tap ad to increase money

How-to use the code

Permissions

  • INTERNET, for ads
  • ACCESS_NETWORK_STATE, for avoiding sending ad requests if there's no internet connection

License

  • MIT, see LICENSE file
  • Nyan Cat was drawn by Christopher Torres and もももも remixed the music by daniwell

Version

  • 3.0

Contact

quchen

flappycow's People

Contributors

cubei avatar joaopucci avatar repat 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  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

flappycow's Issues

Bug: app crashed when i click on Achievements

Describe the bug.

App crashed when I check the Achievements after I played and loss

Steps to reproduce.

  • Launch the app.

  • Sign in

  • Play the game and loss

  • then check the Achievements immediately.

Expected Behaviour

I expect that I should be able to check the Achievements without any issue

Screen recording

https://youtu.be/i8yNSsyOjpY

Devices and Versions)

  • Device: [itel]

  • Version [6.1]

  • App version [3.3.0]

Log

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)```

Bug: app crashed when i click on High score

Describe the bug.

App crashed when I check the Highscore after I played and loss

Steps to reproduce.

  • Launch the app.

  • Sign in

  • Play the game and loss

  • then check the Highscore immediately.

Expected Behaviour

I expect that I should be able to check the Highscore without any issue

Screen recording

https://youtu.be/L9zY94vL4Ls

Devices and Versions)

  • Device: [itel]

  • Version [6.1]

  • App version [3.3.0]

I will add the log soon.

Hey Master ...!

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 ?

Alpha8 bitmap can course problems

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

Use game loop

Instead of updating the game with a constant timer tick, a while loop should be used with the option of frame skipping.

get constant fps on all devices

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.

Could not find com.android.tools.build:gradle:3.0.1.

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

how to make source code run?

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

exception

When you click on the play was going to play take-up
Upper-click a few times and took
's Exception (Force close)

Build error !!

image

Getting this error while building this project in android studio 2.1.3 !!

Drawing Bitmaps in the correct size

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.

Reset on orientation change

When the orientation changes (e.g. tablet lockscreen -> landscape) onCreate method is recalled. This resets the game.

error google_play

Why not complete this game? Packages Where do I download
I am using intellij

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.