Skip to content

imhazige/AeroEgg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aero Egg

A 2D Indie Game Based on Unity3D.

Download

Features

  • Dynamic load/unload level, the whole not small game is in a same Unity Scene.
  • Dynamic collider-wrapped line.
  • Visual edit game scene in the Unity Editor by Unity Editor script.

File Structure

art

This folder contains the arts design files(Adobe Photoshop,Adobe Illustrator) which made by myself. and the scripts for Photoshop and Illustrator.

Normally, most players appear in the game is designed by Photoshop while icon and background was using Illustrator.

doc

This folder contains the files of the document of this project.

screenrecord

Contains the video of the game.

src

Contain the code of the android version.

Development

Require Unity 2019.3.0f6 or above.

This project is target to Android only, but it is easy to convert to IOS.

Use the unity to open the folder src/VolitantEgg.

You could use a emulator(such as mumu) or android device to run the built apk file.

Art

Animation

Export via script

art/ai.jsx is the script for Illustrator.

// you have to change the path to the folder on your local machine
var G_desFolder = "<your path>/SaveTheEgg/src/SaveTheEgg/Assets/Resources/Img";

art/ps.jsx is the script for Photoshop.

// you have to change the path to the folder on your local machine
var saveFolder = "<your path>/SaveTheEgg/src/VolitantEgg/Assets/Resources/Img";

You could use this script to export the layers as separate image.

Edit the Level

src/VolitantEgg/Assets/Scripts/ste/EditorAssist.cs contain the editor assist code to deign, save the levels.

When need to edit the level, make the Editor Object visible, you will see the branches of the trees, animals players and other stuff of all the levels.

You could adjust the level position, add object etc... then save the levels (by click the Save Design menu button) to prefabs as the levels are loaded dynamically via the Unity Prefabs.

Single Scene with all the levels dynamically loading

The game have many logic levels, normally it depends on the height the egg fly to. The more the egg near the ground, the more the height be, it will be more hard as there are more animals dangerous to the Egg.

There are only one Unity Scence, so there are no interruption between the levels, player have to keep the Egg safe.

Script src/VolitantEgg/Assets/Scripts/kazgame/level/DanymicLoadLevelController.cs abstract a mechanism that able to dynamically load Unity Prefabs. Simply, it check the main camera y value and the nearest level y, if smaller than the giving value, start to load the Prefabs in the background asynchronously. and unload the levels loaded but off the screen.

The Line

Every Line is wrapper with a Edge Collider created dynamically depend on the player touch event, and created from the object pool.

More detail refer to src/VolitantEgg/Assets/Scripts/ste/LineController.cs and src/VolitantEgg/Assets/Scripts/ste/Line.cs.

Preserable Game

The game progress is preserable, in a nutshell, every object that preserable should implement interface GameSaverable and return a hashtable, then it will be serialized to binary data.

Refer to src/VolitantEgg/Assets/Scripts/kazgame/gamesave/GameSaver.cs.

Two Trees

There are two trees in the game, left is a pine tree, right is a oak tree(I hope I draw them correctly. 😄).

These two trees make up the background across the levels, actually it contains only 12 images, src/VolitantEgg/Assets/Resources/Img/trunk_left_x.png for left tree, src/VolitantEgg/Assets/Resources/Img/trunk_right_x.png for right tree.

Credits

Most music and sounds are searched with free license. I made some sounds by myself via garageband.

The credits are also available at here.

Musics

Carefree Melody by Twin Musicom is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by/4.0/) Source: http://www.twinmusicom.org /song/302/carefree-melody Artist: http://www.twinmusicom.org

Locally_Sourced by Unknown Source: YouTube Audio Library

Sounds

Cuckoo Clock by Dean-Raule_DiArchangeli is licensed under a Creative Commons Attribution license (https://creativecommons.org /publicdomain/zero/1.0/) Source: https://freesound.org/people /Dean-Raule_DiArchangeli /sounds/128177/

pigeon wings by tigersound is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by-nc/3.0) Source: http://www.freesound.org /people/tigersound /sounds/9329/

Squirrel Chatter 4 3 2016 Lincoln Nebraska by bmccoy2 is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by-nc/3.0) Source: http://www.freesound.org /people/bmccoy2 /sounds/342105

Monkey screaming by Archeos is licensed under a Creative Commons Attribution license (https://creativecommons.org /publicdomain/zero/1.0) Source: http://www.freesound.org /people/Archeos /sounds/325549

monkeys-1 by xserra is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by-nc/3.0) Source: http://www.freesound.org /people/xserra /sounds/93993

Gibbon Monkey by Bidone is licensed under a Creative Commons Attribution license (https://creativecommons.org /publicdomain/zero/1.0) Source: http://www.freesound.org /people/Bidone /sounds/67355

Owls at Night by Npeo is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by-nc/3.0) Source: http://www.freesound.org /people/Npeo /sounds/221672

Woodpecker Eating Distant by Unknown Source: YouTube Audio Library

Eagle owl by urupin is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by-nc/3.0) Source: http://www.freesound.org /people/urupin /sounds/344467

8-bit Countdown Ready by JapanYoshiTheGamer is licensed under a Creative Commons Attribution license (https://creativecommons.org /publicdomain/zero/1.0) Source: http://www.freesound.org /people/JapanYoshiTheGamer /sounds/361254

Race Start Ready go by steel2008 is licensed under a Creative Commons Attribution license (https://creativecommons.org /publicdomain/zero/1.0) Source: http://www.freesound.org /people/steel2008 /sounds/231277

GoodResult by unadamlar is licensed under a Creative Commons Attribution license (https://creativecommons.org /publicdomain/zero/1.0/) Source: http://www.freesound.org /people/unadamlar /sounds/341985

SFX Magic by renatalmar is licensed under a Creative Commons Attribution license (https://creativecommons.org /publicdomain/zero/1.0/) Source: http://www.freesound.org /people/renatalmar /sounds/264981

SCORE COUNT by xtrgamr is licensed under a Creative Commons Attribution license (https://creativecommons.org /publicdomain/zero/1.0/) Source: http://www.freesound.org /people/xtrgamr /sounds/253546/

Game Sound Correct by Bertrof is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by/3.0/) Source: http://www.freesound.org /people/Bertrof /sounds/131660/

wah wah sad trombone by kirbydx is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by/3.0/) Source: http://www.freesound.org /people/kirbydx /sounds/175409

Birds by Julien Nicolas is licensed under a Creative Commons Attribution license (https://creativecommons.org /licenses/by/3.0/) Source: http://www.freesound.org /people/Julien%20Nicolas /sounds/243459/