Package ch.idsia.mario.engine

Examples of ch.idsia.mario.engine.MarioComponent


//        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
//        frame.setLocation((screenSize.width-frame.getWidth())/2, (screenSize.height-frame.getHeight())/2);       
        if (marioComponentFrame == null)
        {
            marioComponentFrame = new JFrame(evaluationOptions.getAgentName());
            marioComponent = new MarioComponent(320, 240);
            marioComponentFrame.setContentPane(marioComponent);
            marioComponent.init();
            marioComponentFrame.pack();
            marioComponentFrame.setResizable(false);
            marioComponentFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here

TOP

Related Classes of ch.idsia.mario.engine.MarioComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.