Replica Island
A side scrolling video game for Android.
Authors: Chris Pruett and Genki Mine
This code and artwork is released under the Apache 2.0 license. See COPYING for details.
ABOUT REPLICA ISLAND
Replica Island is a side-scrolling platformer for Android devices. It stars the Android robot as its protagonist as he embarks on a dangerous mission to find a mysterious power source. This is a complete game: all art, dialog, level layouts, and other data are included along with the code.
ABOUT THE SOURCE
The code is structured into several Activities for the main menu, level select screen, dialog window, and main game. Most of the code in this project is related to src/com/replicaisland/AndouKun.java, which implements the core game Activity ("AndouKun" was the code name for this project and you can find references to it all over the code).
The game loop itself is structured as follows:
AndouKun.java spins up the game, handles input events, deals with pausing and resuming, and also manages the progression across game levels.
Game.java is a layer of abstraction between AndouKun.java and the game loop itself. This class bootstraps the game, passes events through, and manages the game thread.
GameThread.java is the actual game loop. It's main utility is to manage the main loop (MainLoop.java), which implements the rest of the game logic.
MainLoop.java is the head of the game graph that describes the Replica Island runtime. Anything managed by MainLoop will be polled once per frame, and children of MainLoop may themselves have children which will be polled. GameObjects are a specific type of game graph node that only contain GameComponents as children. GameComponents implement individual features (collision detection, animation, rendering, etc) of individual game entities. GameObjects are generally parented to GameObjectManager, which activates and deactivates its children based on their proximity to the camera. GameObjectManager is a child of MainLoop.
The last step in the GameThread is the rendering step. Rendering does not occur in the game thread. Instead, render commands are queued up by the game thread and then handed to a separate render thread at a synchronization point. The render thread is mostly implemented in GameRenderer.java, which is run by GLSurfaceView.java.
KEY FILES
Here are some interesting files in this project.
res/raw/collision.bin: This is the raw collision data. Line segments and normals.
tools/ExtractPoints.js: This is a (rather horrible) Javascript tool for Photoshop. It will walk closed paths and produce a text layer describing them as line segments and normals, organized by tile. It takes a long time to run and is probably the worst code in the entire project. res/raw/collision.bin is the binary version of output from this tool.
res/xml/leveltree.xml: This file describes the non-linear level progression through the game. It is a tree, each node of which may contain one or more levels. Continuing to the next node requires that all levels are completed.
src/com/replica/replicaisland/BaseObject.java and ObjectManager.java: These are the core nodes of the game graph.
ABOUT THE AUTHORS
Chris Pruett wrote code, dialog, made sounds, and defined the core game design.
Genki Mine made all of the art, most of the levels layouts, all of the character designs, most of the sound, and also contributed to the game design.
Tom Moss got the project up and running and then sat back and let us make it cool.
Special thanks to Jason Chen for awesome rah-rah cheerleading support, Casey Richardson for excellent play testing and design feedback, Tim Mansfield for dialog edits, all 1300 users who participated in beta testing, and to the Android team for continued support.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【安卓程序——机器人冒险岛游戏】 (1)一个包含源代码和全部配置文件的完整安卓工程包。此程序是一个经典的机器人冒险岛游戏,它可以在安卓设备上运行,无论是手机还是平板电脑。这个程序非常适合初学者学习安卓开发,也可以供大家自行娱乐,或者作为课程设计项目。 (2)使用Java语言编写,采用了安卓开发的基础框架,包括活动(Activity)、意图(Intent)、广播接收器(Broadcast Receiver)等组件。通过此程序,初学者可以了解安卓开发的基本概念和基本操作,掌握如何使用Java语言开发安卓应用程序。 (3)源代码和配置文件完整,包括了所有必要的文件和资源。这使得学习者可以全面了解程序的各个部分,从界面设计到游戏逻辑的实现,以及如何进行调试和测试。 (4)本程序经过测试,可以保证在安卓设备上正常运行,另外附带了一份详细的运行教程,如果学习者在运行程序时遇到任何问题,可以随时联系博主进行咨询和解决。
资源推荐
资源详情
资源评论
收起资源包目录
Android游戏-机器人冒险岛游戏源码(java实现,可作学习及课设使用,附运行教程) (1441个子文件)
resources.ap_ 4.76MB
Replicaisland.apk 4.99MB
slidetest.bin 31KB
level_2_7_grass.bin 29KB
level_2_1_grass.bin 29KB
level_4_4_underground.bin 29KB
level_2_9_grass.bin 29KB
level_2_2_grass.bin 29KB
level_2_4_grass.bin 29KB
level_1_4_island.bin 29KB
level_4_8_underground.bin 27KB
level_4_9_underground.bin 26KB
level_3_4_sewer.bin 24KB
level_1_9_island.bin 24KB
level_3_10_sewer.bin 24KB
level_4_5_underground.bin 24KB
level_3_2_sewer.bin 24KB
level_3_5_sewer.bin 22KB
level_1_1_island.bin 22KB
openandshut.bin 20KB
level_3_6_sewer.bin 20KB
level_2_8_grass.bin 20KB
level_3_1_grass.bin 18KB
level_4_2_underground.bin 18KB
level_4_7_underground.bin 18KB
level_1_8_island.bin 16KB
level_0_3_lab.bin 15KB
level_0_2_lab.bin 14KB
level_3_11_sewer.bin 14KB
level_1_5_island.bin 13KB
level_4_3_underground.bin 13KB
level_final_boss_lab.bin 13KB
objecttestmap.bin 13KB
level_1_3_island.bin 12KB
level_1_2_island.bin 12KB
slidetest3.bin 12KB
testmap.bin 11KB
level_3_7_sewer.bin 11KB
puzzles_test.bin 10KB
level_3_9_sewer.bin 9KB
level_3_8_sewer.bin 9KB
level_3_3_sewer.bin 9KB
level_3_7_underground.bin 9KB
level_4_1_underground.bin 9KB
island1.bin 8KB
level_2_6_grass.bin 7KB
dungeon01.bin 7KB
level_0_1_sewer.bin 6KB
collision.bin 5KB
level_0_1_sewer_wanda.bin 5KB
level_0_1_sewer_kyle.bin 5KB
slidetest2.bin 4KB
level_2_3_grass.bin 4KB
level_2_5_grass.bin 4KB
level_1_6_island.bin 4KB
level_3_0_sewer.bin 3KB
performancetest4.bin 3KB
npc_motion_test.bin 2KB
collisiontest.bin 2KB
performancetest2.bin 2KB
performancetest.bin 1KB
performancetest3.bin 333B
jarlist.cache 120B
proguard.cfg 1KB
GameObjectFactory.class 112KB
GLErrorLogger$ErrorLoggingGL.class 31KB
AndouKun.class 19KB
R$drawable.class 17KB
Game.class 17KB
PlayerComponent.class 16KB
CollisionSystem.class 15KB
R$string.class 14KB
HudSystem.class 13KB
GLSurfaceView$GLThread.class 10KB
AnimationComponent.class 10KB
HitReactionComponent.class 10KB
NPCComponent.class 10KB
MainMenuActivity.class 9KB
GameRenderer.class 9KB
GameObjectCollisionSystem.class 9KB
GLSurfaceView.class 9KB
NPCAnimationComponent.class 8KB
LevelSelectActivity.class 8KB
InputGameInterface.class 8KB
LaunchProjectileComponent.class 8KB
Grid.class 7KB
BackgroundCollisionComponent.class 7KB
TextureLibrary.class 7KB
ExtrasMenuActivity.class 7KB
PatrolComponent.class 7KB
ConversationDialogActivity.class 7KB
GhostComponent.class 7KB
SpriteComponent.class 6KB
PhysicsComponent.class 6KB
TiledVertexGrid.class 6KB
LevelTree.class 6KB
GLSurfaceView$EglHelper.class 6KB
KeyboardConfigDialogPreference.class 6KB
LifetimeComponent.class 6KB
LevelSystem.class 6KB
共 1441 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
小新要变强
- 粉丝: 2w+
- 资源: 539
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功