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 class loadingactivity extends activity {           @Override     public void oncreate (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 (New AdListener ( )  {                           @Override              public void onreceivead (ad arg0)  {                 gamestart.setvisibility (View.VISIBLE);             }                          @ override            public void  Onpresentscreen (ad arg0)  {                 //&nbSp todo auto-generated method stub                               }                           @Override              public void onleaveapplication (ad arg0)  {                 // TODO Auto-generated  method stub                              }                            @Override            public void  Onfailedtoreceivead (AD ARG0, ERRORCODE ARG1)  {                 // todo auto-generated method stub                               }                          @ override            public void  Ondismissscreen (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 (New  view.onclicklistener ()  {                           @Override              public void onclick (view arg0)  {                                   intent intent = new intent (LoadingActivity.this,  gamebirdactivity.class);                 intent.setflags (intent.flag_activity_clear_top);                                   startactivity (Intent);                                   finish ();             }         });     }          private int[] getsettingdata ()  {          sharedpreferences gb_settings = getsharedpreferences ( gamebirdactivity.gamebirdsettingsfile, 0);         int  Last = gb_settings.getint (gamebirdactivity.settings_levellast, 0);         int top = gb_settings.getint (gamebirdactivity.settings_leveltop, 0 );                  return  new int[]{last, top};    }          @Override     public  boolean onkeydown (int keycode, keyevent event)  {          if  (Keycode == keyevent.keycode_back)  {                  try{                      GameBirdActivity.instance.finish ();                 }catch (exception e) {}                 finish ();                 system.exit (0);                              return true;         }         return  Super.onkeydown (keycode, event);     }}
    • <ignore_js_op>650) this.width=650; "id=" aimg_4752 "class=" Zoom "src=" http://img.662p.com/android/forum/ 201410/21/122542nl822q522sqpf2w2.jpg "width=" "style=" border:0px;/>

      Run

    • <ignore_js_op>650) this.width=650; "id=" aimg_4753 "class=" Zoom "src=" http://img.662p.com/android/forum/ 201410/21/122544rkxuch2hq1iifzq3.jpg "width=" "style=" border:0px;/>

      Run

    • <ignore_js_op>650) this.width=650; "id=" aimg_4754 "class=" Zoom "src=" http://img.662p.com/android/forum/ 201410/21/122547r562h4ow010eexx9.jpg "width=" "style=" border:0px;/>


      Run

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


Flying round (Flappy Bird) game source full version

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.