All pastes #368683 Raw Edit

Anonymous

public text v1 · immutable
#368683 ·published 2007-02-23 07:37 UTC
rendered paste body
/*
 * Main.java
 *
 * Created on February 19, 2007, 8:01 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package smj;

import java.io.*;
import smj.*;
import smj.gui.*;
import smj.world.*;

/**
 *
 * @author kcbanner
 */
public class Game {
    
    // Create the object will store everything we know about the world
    private World world;
    // Our Player
    private PlayerEntity avatar;
    // OpenGL Window
    private GameWindow window;
    // Game
    private Game g;
    
    
    /** Creates a new instance of Main */
    public Game() {
        
        World world = new World();
        
        // TODO: Add network code!
        // This is where we will have to do some network code to ask for our players initial properties
        
        // For now were just pretending we already know
        PlayerEntity avatar = new PlayerEntity("kcbanner", 0.0, 0.0, 0);
        
        // Add our player into the world
        String username = "kcbanner";
        world.addPlayer(username, avatar);
        
        GameWindow window = new GameWindow();
        window.startRendering();
        
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {   
        Game g = new Game();
    }
    
}