首页>代码>JAVA swing高仿愤怒的小鸟AngryBird源代码下载>/AngryBirds/src/AngryBirdsApplication/AngryBirdsMain.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package AngryBirdsApplication;

import AngryBirdsLevel.BirdsLevel;
import java.awt.CardLayout;
import java.awt.Dimension;
import java.awt.Image;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Level;
import java.util.logging.Logger;
//import javax.media.CannotRealizeException;
//import javax.media.NoPlayerException;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;

/**
 *
 * @author Sumomoxiao
 */
public class AngryBirdsMain {

    /**
     * Entrance of This Game.
     */
    public static void main(String[] args) throws InterruptedException, IOException{// NoPlayerException, CannotRealizeException {

            
            BirdsLevel ts=new BirdsLevel();
          
            AngryBirdsMenu menu=new AngryBirdsMenu();
            AngryBirdsPanel game=new AngryBirdsPanel();

            AngryBirdsViewFrame mainframe=new AngryBirdsViewFrame(menu,game);
            //MusicController music=new MusicController();
            AngryBirdsController tc=new AngryBirdsController(ts,game);
            AngryBirdsMenuController mc=new AngryBirdsMenuController(menu);
            AngryBirdsPanelController pc=new AngryBirdsPanelController(mainframe.getLayoutpanel(),mc,tc);        

            
            ts.getWorld().setContactListener(tc);
            //music.start();

            Thread switcher=new Thread(pc);
            
            switcher.start();
            mainframe.setVisible(true);
        
    }
}
最近下载更多
wangjialiang1  LV17 2023年8月24日
yerwiu  LV10 2023年7月30日
月影浮动  LV6 2020年5月22日
wei112233  LV15 2020年5月20日
远程调试_成品系统  LV15 2020年3月19日
wangzff  LV3 2020年2月26日
GG思密达da  LV9 2020年1月16日
zipper  LV8 2020年1月8日
yukaifeng  LV4 2019年12月30日
最近浏览更多
llqq114  LV10 7月30日
2108838392 6月16日
暂无贡献等级
果冰123456 2024年12月16日
暂无贡献等级
sunrui5555  LV1 2024年4月19日
unprecedented 2023年11月16日
暂无贡献等级
微信网友_6738500712058880 2023年11月16日
暂无贡献等级
wangjialiang1  LV17 2023年8月24日
yerwiu  LV10 2023年7月30日
fmj0408  LV1 2023年6月19日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友