在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:po8rewq/AGE开源软件地址:https://github.com/po8rewq/AGE开源编程语言:Haxe 100.0%开源软件介绍:AGEAnother Game Engine for Haxe js (Haxe 3 only) AGE is a minimal game engine for making HTML5 games Version 0.0.1 Feature list
Development buildJust run this command line into your terminal haxelib git AGE https://github.com/po8rewq/AGE src Add the lib to your project : -lib AGE Or just clone the repo and add : -cp /age/directory/src/ Basic "how to"Start a new project :Main.hx import age.core.Engine;
class Main extends Engine
{
public function new() {
super(800, 600, new MyFirstState(), 60, "#CECECE");
}
public static function main() {
new Main();
}
} MyFirstState.hx import age.display.State;
class MyFirstState extends State
{
public function new() {
super();
}
public override function create() {
trace('Hello world');
}
public override function update() {
trace('main loop');
super.update();
}
} Preloader :Main.hx import age.core.Engine;
class Main extends Engine
{
// [...]
public static function main()
{
Loader.addResource('/path/to/myimg.png', ResourceType.IMAGE, 'img1');
Loader.addResource('/path/to/mysound.ogg', ResourceType.SOUND, 'snd1');
Loader.start( function() { new Main(); } );
}
} Add an element to the screen :
or if you used the Loader :
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论