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.
没有合适的资源?快使用搜索试试~ 我知道了~
Android 游戏源代码 Replicaisland(含截图)
共762个文件
png:427个
java:143个
xml:100个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 109 浏览量
2022-06-23
08:34:57
上传
评论
收藏 5.42MB RAR 举报
温馨提示
Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replicaisland(含截图)Android 游戏源代码 Replic
资源推荐
资源详情
资源评论
收起资源包目录
Android 游戏源代码 Replicaisland(含截图) (762个子文件)
slidetest.bin 31KB
level_2_1_grass.bin 29KB
level_4_4_underground.bin 29KB
level_2_4_grass.bin 29KB
level_2_7_grass.bin 29KB
level_2_2_grass.bin 29KB
level_2_9_grass.bin 29KB
level_1_4_island.bin 29KB
level_4_8_underground.bin 27KB
level_4_9_underground.bin 26KB
level_3_2_sewer.bin 24KB
level_4_5_underground.bin 24KB
level_3_4_sewer.bin 24KB
level_3_10_sewer.bin 24KB
level_1_9_island.bin 24KB
level_1_1_island.bin 22KB
level_3_5_sewer.bin 22KB
level_2_8_grass.bin 20KB
openandshut.bin 20KB
level_3_6_sewer.bin 20KB
level_4_2_underground.bin 18KB
level_3_1_grass.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
objecttestmap.bin 13KB
level_final_boss_lab.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_4_1_underground.bin 9KB
level_3_8_sewer.bin 9KB
level_3_7_underground.bin 9KB
level_3_3_sewer.bin 9KB
level_3_9_sewer.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_kyle.bin 5KB
level_0_1_sewer_wanda.bin 5KB
slidetest2.bin 4KB
level_2_5_grass.bin 4KB
level_1_6_island.bin 4KB
level_2_3_grass.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
proguard.cfg 1KB
.classpath 364B
COPYING 11KB
GameObjectFactory.java 256KB
R.java 70KB
GLSurfaceView.java 54KB
GLErrorLogger.java 31KB
CollisionSystem.java 30KB
AndouKun.java 26KB
Game.java 19KB
PlayerComponent.java 19KB
HudSystem.java 18KB
NPCComponent.java 16KB
BackgroundCollisionComponent.java 15KB
MainMenuActivity.java 15KB
GameObjectCollisionSystem.java 14KB
Grid.java 12KB
AnimationComponent.java 12KB
InputGameInterface.java 11KB
LevelSelectActivity.java 11KB
HitReactionComponent.java 11KB
NPCAnimationComponent.java 11KB
GameRenderer.java 10KB
PatrolComponent.java 10KB
ConversationDialogActivity.java 9KB
TextureLibrary.java 9KB
FixedSizeArray.java 9KB
PhysicsComponent.java 8KB
ExtrasMenuActivity.java 8KB
LevelTree.java 8KB
CameraSystem.java 8KB
LaunchProjectileComponent.java 8KB
TiledVertexGrid.java 7KB
KeyboardConfigDialogPreference.java 7KB
GhostComponent.java 7KB
GameObjectManager.java 7KB
LevelBuilder.java 7KB
GameObject.java 6KB
AnimationPlayerActivity.java 6KB
LevelSystem.java 6KB
共 762 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
金枝玉叶9
- 粉丝: 124
- 资源: 7640
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功