当前位置: 首页>>代码示例>>Java>>正文


Java Game类代码示例

本文整理汇总了Java中org.newdawn.slick.Game的典型用法代码示例。如果您正苦于以下问题:Java Game类的具体用法?Java Game怎么用?Java Game使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Game类属于org.newdawn.slick包,在下文中一共展示了Game类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: runAsApplication

import org.newdawn.slick.Game; //导入依赖的package包/类
/**
 * Start the game as an application
 * 
 * @param game The game to be started
 * @param width The width of the window
 * @param height The height of the window
 * @param fullscreen True if the window should be fullscreen
 */
public static void runAsApplication(Game game, int width, int height, boolean fullscreen) {
	try {
		AppGameContainer container = new AppGameContainer(game, width, height, fullscreen);
		container.start();
	} catch (Exception e) {
		e.printStackTrace();
	}
}
 
开发者ID:j-dong,项目名称:trashjam2017,代码行数:17,代码来源:Bootstrap.java

示例2: closeRequested

import org.newdawn.slick.Game; //导入依赖的package包/类
/**
 * @see org.newdawn.slick.Game#closeRequested()
 */
public boolean closeRequested() {

    // To run Cleanup at window close
    de.tu_darmstadt.gdi1.gorillas.main.Game.cleanupOnExit();

    return true;
}
 
开发者ID:joshimoo,项目名称:Gorillaz,代码行数:11,代码来源:StateBasedGame.java

示例3: runAsApplication

import org.newdawn.slick.Game; //导入依赖的package包/类
/**
 * Start the game as an application
 * 
 * @param game The game to be started
 * @param width The width of the gui
 * @param height The height of the gui
 * @param fullscreen True if the gui should be fullscreen
 */
public static void runAsApplication(Game game, int width, int height, boolean fullscreen) {
	try {
		AppGameContainer container = new AppGameContainer(game, width, height, fullscreen);
		container.start();
	} catch (Exception e) {
		e.printStackTrace();
	}
}
 
开发者ID:Pheelbert,项目名称:cretion,代码行数:17,代码来源:Bootstrap.java

示例4: TWLTestAppGameContainer

import org.newdawn.slick.Game; //导入依赖的package包/类
public TWLTestAppGameContainer(Game game) throws SlickException {
    super(game, 640, 480, false);
}
 
开发者ID:joshimoo,项目名称:Gorillaz,代码行数:4,代码来源:TWLTestAppGameContainer.java

示例5: Container

import org.newdawn.slick.Game; //导入依赖的package包/类
/**
 * Create a new container wrapping a game
 *
 * @param game The game to be wrapped
 * @throws SlickException Indicates a failure to initialise the display
 */
public Container(Game game) throws SlickException {
	super(game);
}
 
开发者ID:itdelatrisu,项目名称:opsu,代码行数:10,代码来源:Container.java


注:本文中的org.newdawn.slick.Game类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。