zoukankan      html  css  js  c++  java
  • flash开源游戏引擎pushButton学习笔记(1)引擎简介HelloWorld

              PushButton引擎,与以往的游戏引擎不同的是,这是一个模块化的游戏引擎,也就是说它提供了许多游戏开发中的通用组件来为开发者服务;PushButton引擎提供了包括知名物理引擎Box2D在内多多个类库,在googlecode上可以下到它的SDK,其中包括全部源码和相关文档。

      Pushbutton引擎的特色有很多,包括建立游戏的模块片段,而不是整体式的应用;使用第三方类库更加容易;提供核心功能比如资源管理器、日志管理、调试检测、序列号、时间管理、全局命名对象等等;相关的组件包括基于Box2D的物理引擎、游戏常用的健康值组件、团队组件、状态机组件、贴图系统、路径查找类库、基本的网络联机和通讯服务;
      将来会提供编辑器,以及网络联机组件,这两个组件都是收费组件;

      该游戏引擎的官方网站还列出了组件商店的介绍,作为该组织出售组件和广大开发者出售组件的场所,这不失为一个好的商业模式。

      官方网站:http://pushbuttonengine.com/

      以下为hello world

    代码
    package net.daidu
    {
        
    import com.pblabs.engine.PBE;
        
    import com.pblabs.engine.debug.Logger;
        
        
    import flash.display.Sprite;

        
    public class HelloWorld extends Sprite
        {
            
    public function HelloWorld()
            {
                
    super();
                PBE.startup(
    this);
                Logger.debug(
    this,"Hello world");
            }
            
        }
    }
  • 相关阅读:
    day25:接口类和抽象类
    vue1
    How the weather influences your mood?
    机器学习实验方法与原理
    How human activities damage the environment
    Slow food
    Brief Introduction to Esports
    Massive open online course (MOOC)
    Online learning in higher education
    Tensorflow Dataset API
  • 原文地址:https://www.cnblogs.com/daidu/p/1725070.html
Copyright © 2011-2022 走看看