`
yezhiqiu-love
  • 浏览: 169272 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

AndEngine - Core-Terminology

阅读更多

AndEngine - Core-Terminology

BaseGameActivity:
The BaseGameActivity is the root of a game, that contains an Engine and manages to create a SurfaceView the contents of the Engine will be drawn into. There is always exactly one Engine for one BaseGameActivity. You can proceed from one BaseGameActivity to another using common Android mechanisms.

Engine:
The Engine make the game proceed in small discrete steps of time. The Engine manages to synchronize a periodic drawing and updating of the Scene, which contains all the content that your game is currently handling actively. There usually is one Scene per Engine, except for the SplitScreenEngines.

IResolutionPolicy:
An implementation of the IResolutionPolicy interface is part of the EngineOptions. It tells AndEngine how to deal with the different screen-sizes of different devices. I.e. RatioResolutionPolicy will maximize the SurfaceView to the limiting size of the screen, while keeping a specific ratio. That means objects won't be distorted while the SurfaceView has the maximum size possible.

Camera:
A Camera defines the rectangle of the scene that is drawn on the screen, as not the whole scene is visible all the time. Usually there is one Camera per Scene, except for the SplitScreenEngines. There are subclasses that allow zooming and smooth position changes of the Camera.


Scene:
The Scene class is the root container for all objects to be drawn on the screen. A Scene has a specific amount of Layers, which themselves can contain a (fixed or dynamic) amount of Entities. There are subclasses, like the CameraScene/HUD/MenuScene that are drawing themselves to the same position of the Scene no matter where the camera is positioned to.

Entity:
An Entitiy is an object that can be drawn, like Sprites, Rectangles, Text or Lines. An Entity has a position/rotation/scale/color/etc...

Texture:
A Texture is a 'image' in the memory of the graphics chip. On Android the width and height of a Texture has to be a power of 2. Therefore AndEngine assembles a Texture from a couple of ITextureSources, so the space can be used better.

ITextureSource:
An implmentation of the ITextureSource-interface like AssetTextureSource manages to load an image onto a specific position in the Texture.

TextureRegion:
A TextureRegion defines a rectangle on the Texture. A TextureRegion is used by Sprites to let the system know what part of the big Texture the Sprite is showing.

PhysicsConnector:
A PhysicsConnector manages to update the AndEngine-Shapes (like Rectangles/Sprites/etc...) when their physics representations "bodies" change. Once using Physics (and a PhysicsConnector) with an AndEngine-Shape you'd disable the Physics calculated by AndEngine itself, by calling setUpdatePhysics(false) to the Shape. Changes made to the AndEngine-Shape are not reflected in the Physics - you have to call the methods on the Body object you have used to create the PhysicsConnector.

分享到:
评论

相关推荐

    andengine-gles2.jar

    AndEngine 2013-3-12 最新Jar包,直接拉进项目libs即可,可查看源代码

    AndEngine-GLES2

    AndEngine-GLES2是一款专为Android平台设计的开源2D游戏引擎,它为开发者提供了高效且易用的工具,用于创建各种2D游戏。这款引擎以其简洁的API和丰富的功能而受到开发者的欢迎,尤其值得一提的是,曾经风靡全球的...

    AndEngine-GLES2源码

    AndEngine-GLES2是一款专为Android平台设计的游戏开发框架,基于OpenGL ES 2.0图形库,提供了一套高效、易用的API,使得开发者能够快速构建2D游戏。源码的获取对于深入理解AndEngine的工作原理以及进行自定义扩展至...

    AndEngine-GLES2-Example Eclipse Android 工程

    AndEngine 2013-2月 最新Example,直接导入Eclipse即可,API15, 环境 Android 4.0.3

    Andengine-Android-Studio:用于游戏引擎的 Android Studio 模块,流行的标题和引擎

    Andengine是一款开源的游戏开发引擎,专门针对Android平台设计,它为开发者提供了强大的2D游戏开发框架,无需深入学习复杂的OpenGL底层细节,即可快速构建出高质量的2D游戏。Andengine-Android-Studio是将Andengine...

    AndEngine-"河內塔"遊戲源碼

    【AndEngine-"河内塔"游戏源码】是一款基于AndEngine引擎开发的手机游戏,它实现了经典的"河内塔"(Towers of Hanoi)问题的互动式版本。AndEngine是一个开源的Android游戏开发框架,它允许开发者用Java语言创建2D...

    AndEngine-Utils:使 AndEngine 开发人员的生活更轻松的实用程序

    AndEngine是一款知名的开源游戏开发引擎,专为Android平台设计,基于OpenGL ES,提供了一套简单易用的API,使得开发者可以快速创建2D游戏。AndEngine-Utils是AndEngine的一个扩展库,它包含了一系列实用工具类和模块...

    AndEngine-document.docx.zip_andengine_android

    AndEngine是一款专为Android平台设计的游戏开发框架,它提供了一个高效、易于使用的API,使得开发者可以快速构建2D游戏。这款开源引擎具有丰富的功能和模块,对于初学者和经验丰富的开发者来说,都是一个非常理想的...

    andengine-physicseditor-extension.jar

    官方版本,亲测可用

    andengine-o.jar

    官方版本,亲测可用

    andengine-entitycontainer.jar

    官方版本,亲测可用

    AndEngine-GLES2Android源代码

    Android 最为流行的2D游戏引擎 优点:(1)高效:在大运算量好事情况下,使用C/C++本地代码进行开发。比如物理引擎或者音频处理。 (2)AndEngine是开源项目,开发者可对源码进行修改,它的源码在github上托管

    AndEngine游戏-DeliveryBoy-源代码

    《AndEngine游戏-DeliveryBoy-源代码》是一个用于学习AndEngine游戏开发的示例项目,其主要内容涵盖了AndEngine的基本使用、游戏逻辑构建以及资源管理等多个方面。AndEngine是一款流行的开源Android游戏开发引擎,它...

    andengine-androidstudio:适用于andengine + box2d物理扩展的样板android studio项目

    《AndEngine + Box2D在Android Studio中的应用实践》 AndEngine是一款强大的2D游戏开发引擎,专为Android平台设计,提供了丰富的图形处理和动画功能。Box2D则是一款广泛使用的物理模拟库,用于实现游戏中的真实物理...

    andengine最新源码

    AndEngine是一款专为Android平台设计的游戏开发框架,它基于OpenGL ES 2.0,提供了高效、易用的2D游戏开发解决方案。这个最新的源码版本是开发者社区不断更新和优化的结果,旨在帮助游戏开发者快速构建高质量的游戏...

    andengine-skeleton-android-studio:编译andEngine和andEngineBox2DExtension的就绪版本

    #AndEngine准备使用骨架 ##来自Charles Smartt Jr.和Jordan Dickow ##摘要以下是andEngine和andEnginePhysicsBox2DExtension的可编译就绪源代码集,仅在Android Studio中使用。 JNI本机扩展已被编译并包含在内,而...

    AndEngine范例-源码

    AndEngine是一款专为Android平台设计的游戏开发引擎,它简化了2D游戏的创建过程,让开发者无需深入理解底层图形库,就能快速构建出高质量的移动游戏。本资源提供了AndEngine的范例源码,这对于初学者和有经验的...

    AndEngine-TicTacToe:使用 AndEngine 的井字游戏,基于 Leonard Payne 的教程

    《AndEngine TicTacToe:基于Leonard Payne教程的井字游戏开发详解》 AndEngine是一款流行的开源游戏开发引擎,专为Android平台设计,它简化了2D游戏的创建过程,无需深入理解OpenGL ES。本项目是基于Leonard Payne...

    源码:基于andengine游戏引擎的简单游戏实现(模拟控制器、tiledmap地图)

    程序是基于AndEngine-GLES2的,使用了模拟控制器、tiledmap地图,欢迎下载,因为第一次分享资源,然后也是自己没什么积分,所以资源分设置成了10分,以后共享我会把分设置低点,但是这个资源还是物有所值的。

    andengine 安卓游戏2d引擎

    AndEngine是一款专为Android平台设计的2D游戏开发引擎,凭借其高效性能和易用性,在开发者社区中广受欢迎。这款引擎是基于OpenGL ES 2.0构建的,旨在为开发者提供一个轻量级的解决方案,用于快速创建高质量的2D游戏...

Global site tag (gtag.js) - Google Analytics