Flying round (Flappy Bird) game source full version

Source: Internet
Author: User

This source code is a good leisure class game source, flying round (Flappy Bird) game source V1.0, this project is a imitation Flappy Bird of the small game, but the Flappy Bird inside the bird replaced by a simple circle. Interested friends can look into it. This project is encoded by default GBK.

SOURCE Download: http://code.662p.com/view/9013.html

 Public classLoadingactivity extends Activity {@Override Public voidonCreate (Bundle savedinstancestate) {super.oncreate (savedinstancestate);  This. GetWindow (). SetFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_        fullscreen);                 Requestwindowfeature (Window.feature_no_title);         Setcontentview (r.layout.loading); Final TextView Gamestart=(TextView) Findviewbyid (R.id.game_start); AdView AdView=(AdView) Findviewbyid (R.id.adview); Adview.setadlistener (NewAdlistener () {@Override Public voidOnreceivead (Ad arg0) {gamestart.setvisibility (view.visible); } @Override Public voidOnpresentscreen (Ad arg0) {//TODO auto-generated Method Stub} @Override Public voidonleaveapplication (Ad arg0) {//TODO auto-generated Method Stub} @Override Public voidOnfailedtoreceivead (Ad arg0, ErrorCode arg1) {//TODO auto-generated Method Stub} @Override Public voidOndismissscreen (Ad arg0) {//TODO auto-generated Method Stub                             }        }); View Gamemessage=Findviewbyid (r.id.gamemessage); int[] data =Getsettingdata (); TextView Levelmessage=(TextView) Findviewbyid (r.id.level_message); Levelmessage.settext ("Score:"+data[0]+"\nbest:"+data[1]); Gamemessage.setonclicklistener (NewView.onclicklistener () {@Override Public voidOnClick (View arg0) {Intent Intent=NewIntent (loadingactivity. This, Gamebirdactivity.class);                                 Intent.setflags (Intent.flag_activity_clear_top);                                 StartActivity (Intent);            Finish ();     }        }); }         Private int[] Getsettingdata () {sharedpreferences gb_settings= Getsharedpreferences (Gamebirdactivity.gamebirdsettingsfile,0); intLast = Gb_settings.getint (Gamebirdactivity.settings_levellast,0); inttop = Gb_settings.getint (Gamebirdactivity.settings_leveltop,0); return New int[]{last, Top}; } @Override PublicBoolean OnKeyDown (intKeyCode, KeyEventEvent) {         if(KeyCode = =keyevent.keycode_back) {                 Try{GameBirdActivity.instance.finish (); }Catch(Exception e) {} finish (); System.exit (0); return true; }         returnSuper.onkeydown (KeyCode,Event); }}
    • <ignore_js_op> operation
    • <ignore_js_op> operation
    • <ignore_js_op>


      Run
    • Detailed Description: http://android.662p.com/thread-5878-1-1.html

Flying round (Flappy Bird) game source full version

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.