Era-Odyssey

Public
OVERVIEW.md

My first website gave our educational game a world people could explore before playing.

Era Odyssey was the first game I made with friends in grade 11. We taught ourselves the tools and wrote the game by hand, learning from textbooks and what we could find at the time. The Unity game held the combat and learning systems, but a download alone could not introduce its story, creatures, periods, and team. I built a companion website as a public face for that larger project and as my first attempt to give a game its own place on the web.

Turning game material into a browsable guide

The site connects seven themed areas: a story opening, creature pages, geological information, animations, a gallery, team context, and download links. Visitors meet Demain H. Cover and the time-travel premise before choosing to play. Static HTML, CSS, JavaScript, JSON, and image assets carry that experience; this repository does not run the Unity game in the browser.

The site grew from the need to explain as well as present. Game art and period information became pages that someone could browse independently, while the Play page pointed toward the original game files. The README includes much more about combat, crafting, and quizzes, but those are features of the related Unity game, not JavaScript features of this website.

This repository preserves the presentation side of a self-taught team project and a personal first website milestone. The historical download links and current availability of the original game files need separate checking; the checked-in site itself is a static companion, not a maintained online game service.

README.md

Era Odyssey

The companion website for Era Odyssey, a 2D idle combat game about Earth's geological history. The game was created by a high school team for a learning technology competition. Players travel through geological periods, fight creatures, collect materials, craft equipment, and learn through an in-game book and timed questions.

The complete game showcase and architecture guide is included below. This repository is the main entry point for Era Odyssey. The Unity source repository contains the game code and the canonical copy of its technical documentation.

Game source and technical guide | Full project archive on Google Drive | Download page

About the game

Era Odyssey combines stage-based idle combat with educational content about geological time. The archived Unity source documents period and stage progression, enemy waves and bosses, four elemental skill trees, material drops, two-material crafting, equipment, save data, and the Book of Era quiz. The presentation build ran successfully; the Unity repository is a partial source archive, while the complete project was stored on Google Drive because of its size.

The complete system guide, gameplay flow, architecture, restoration guidance, and technical debt inventory are reproduced below, with links to the files in the Unity repository.

Website contents

PageContent
HomeIntroduction and the story of Demain H. Cover, the research island Saxabra, and the Si-2505 device that sends him into Earth's past.
MonsterCreature showcase.
InformationEducational and background material.
PlayLinks to the game files and APK on Google Drive.
AnimationAnimation showcase.
GalleryGame imagery organized by geological period.
AboutTeam information.

The site is built with static HTML, CSS, JavaScript, JSON, and image assets. The root index.html redirects visitors to assets/Home.html using JavaScript. Page navigation and asset URLs generally use /assets/... paths, so the site should be served from its repository root rather than opened as individual file:// pages.

Run the website locally

From the repository root, start a static file server, then open http://localhost:8000/:

python -m http.server 8000

This serves the root redirect and the /assets/... URLs used by the pages. The command requires Python; any static server that serves the repository root will also work. The website is independent of the Unity runtime.

Project archives

The current availability and contents of external downloads have not been verified in this documentation update. The repository preserves the website as a student project; its structure and content are documented here without implying that it is a current production release.


Unity game documentation

A 2D idle combat game about Earth's geological history. Era Odyssey was developed by a high school team for a learning technology competition. Players travel through geological periods, fight creatures, collect materials, craft and upgrade equipment, and learn through an in-game book and timed questions.

The game ran successfully during its original presentation. The Unity source repository is an archive of source code and selected assets, not a complete Unity project that can be opened directly. The full project was too large for the team's Git workflow at the time, so it was stored on Google Drive and linked from the original readme.txt.

Full project archive on Google Drive | Companion website repository | Website download page

Game systems

SystemPlayer experienceEntry points
Periods and stagesSelect stages in the Cambrian, Ordovician, and Silurian periods; backgrounds and enemies change with the period.GameController, IteeSpawner
Idle combatThe player attacks, uses skills, takes damage, and gains experience; enemies can apply or receive elemental effects and drop items.PlayerMainController, EnemyMainSystem
Enemies and bossesRegular enemies, mini-bosses, and bosses are spawned in stage-based rounds.IteeSpawner, EnemyMainSystem
Inventory and craftingCollect materials from enemies and spend two material types to craft or upgrade weapons and armor.InventoryAllItemSystem, PopUPInformationForCraft
EquipmentEquip two weapons and four armor pieces; equipment values contribute to combat calculations.EquipmentSystem, PlayerMainController
Elemental skillsFire, Water, Frost, and Earth skills have levels, cooldowns, and element-specific effects.SkillAllSystem, Skill/, SlotSkill/
Educational contentThe Book of Era presents reading material; a timed true/false mini-game tests the player.SelectCH, ReadBook, MiniGame
PersistenceProgress, items, equipment, and skills are serialized as JSON under Application.persistentDataPath.DataPersistanceManager, GameData

The educational material is part of the game flow. The Book of Era contains geological-period content, while Question assets define questions in Thai and English. The companion website adds story, creature, gallery, and team material.

Gameplay loop

flowchart LR
    A[Select period and stage] --> B[Fight enemies and bosses]
    B --> C[Gain experience and materials]
    C --> D[Inventory]
    D --> E[Craft and upgrade]
    E --> F[Equip gear and develop skills]
    F --> B
    A --> G[Book of Era]
    G --> H[Read and answer questions]

GameController tracks the player level, experience, unlocked stages, and current period. IteeSpawner manages enemy rounds and bosses. EnemyMainSystem handles enemy health, attacks, elemental states, experience rewards, and drops. PlayerMainController manages player statistics, damage, skills, and equipment-derived values.

Item definitions are stored in InventoryMaterialData and InventoryWeaponData ScriptableObjects. Inventory slots track quantities and discovery or usage state. Crafting reads two material IDs from an equipment definition, checks the required amounts, consumes materials, and increments the equipment quantity. The six equipment slots represent primary and secondary weapons, helmet, chest piece, leggings, and boots.

Architecture guide

1.BookOfEra/   Reading content, question assets, quiz logic, and related UI
1.Combat/      Player, enemies, stages, spawning, skills, prefabs, and enemy data
1.Inventory/   Item definitions, inventory, crafting, equipment, and UI
1.SaveData/    Save model, state collection, and JSON persistence
readme.txt     Original link to the Google Drive archive

The code relies heavily on MonoBehaviour components and references assigned in the Unity Inspector. Source files alone cannot reveal every Inspector value, scene order, or prefab connection. Anyone restoring the game should inspect those bindings in the full project archive alongside the scripts.

Main data flows

  1. Startup and loading: DataPersistanceManager creates a FileDataHandler, finds components implementing IDataPersistance, loads GameData from JSON or creates default data, and distributes state to those components.
  2. Stage progression: GameController selects an unlocked stage and calls IteeSpawner.ChangeStage(). The spawner selects enemy prefabs for the active period and stage.
  3. Combat and drops: PlayerMainController and skill objects damage EnemyMainSystem instances. Defeated enemies award experience and may create pickups that add materials to the inventory.
  4. Crafting and equipment: InventoryAllItemSystem.CraftWeapon() reads a recipe from InventoryWeaponData. EquipmentSystem updates the equipped slots, which PlayerMainController reads when calculating combat values.
  5. Saving: DataPersistanceManager.OnApplicationQuit() gathers state from participating components and writes JSON to Application.persistentDataPath.

Where to make changes

GoalStart withThen inspect
Add an enemy or change spawning1.Combat/New Scripts/GamePlayScript/IteeSpawner.csEnemy prefabs, EnemyMainSystem, and EnemyScriptable/ data
Adjust damage or status effectsPlayerMainController.cs, EnemyMainSystem.csSkill/ and PrefabsObjectsScript/
Add a recipe or materialInventoryWeaponData.cs, InventoryAllItemSystem.csItem assets, slots, and crafting UI
Change equipment behaviorEquipmentSystem.csPopUPInformationForWeapon.cs and calculations in PlayerMainController.cs
Add educational contentSelectCH.cs, MiniGame.cs, Question.cs1.BookOfEra/Ref/ and question assets
Change the save formatGameData.cs, DataPersistanceManager.csClasses in 1.SaveData/Data/ and all IDataPersistance implementations

Companion website

This website repository is separate from the Unity source archive. Its pages include Home, Monster, Information, Play, Animation, Gallery, and About. The Home page introduces Demain H. Cover, the research island Saxabra, and the Si-2505 device that sends him into Earth's past. The Play page links to game files and an APK on Google Drive.

The website documents and presents the game and its story. It is not part of the Unity runtime.

Accessing the full project

  • Browse the source: Clone the Unity source repository to inspect the included C# files, prefabs, and assets.
  • Play or open the complete project: Use the Google Drive archive linked in the original readme.txt, or consult the website's download page.
  • Edit in Unity: Obtain the full project first. Check its ProjectSettings/ProjectVersion.txt to identify the original Unity Editor version, then open it through Unity Hub. The Unity source repository lacks Packages/manifest.json and ProjectSettings/, so it does not establish an Editor version or support a verified build on its own.

The Drive archive's contents and current build status were not verified during this documentation update. The system descriptions above are based on the source in the Unity repository and the separately stored website.

Technical debt

The presentation build worked. The issues below concern maintainability and risks visible in the archived source; they do not imply that the original presentation failed.

PriorityFindingConsequence and remediation
HighGameController.SilurianStage1–10 check UnlockLevel >= 21–30, while AutoChangeStage() identifies Silurian stages as 31–40.Stage selection can pass its gate before the corresponding Silurian stage is unlocked. Centralize stage IDs and test the boundary for each period.
HighCraftWeapon accepts a material when (amount >= required amount) || (multiplier > required multiplier).Amount and multiplier together represent a base-1,000 value; comparing each field independently can approve an insufficient balance. Compare normalized values before consuming materials.
HighInventorySlotWeapon and InventoryAllItemSystem duplicate number-conversion logic. Their while (number * mp < 0) branch does not normalize positive fractions and can fail to terminate for negative values.Quantity and recipe calculations are fragile at numeric boundaries. Consolidate the representation and test zero, fractions, 1, 1,000, large values, and negative values.
HighInventoryWeaponData and InventoryMaterialData ScriptableObjects contain both item definitions and mutable player state such as NumberAmount, EverHave, and IsUse.Template data and session state are coupled. Separate immutable definitions from runtime and saved state.
MediumDataPersistanceManager discovers components through FindObjectsOfType<MonoBehaviour>() and resets saved data when array lengths no longer match the current item or skill counts.Adding content may erase older progress. Introduce a save schema version and migrations, with load tests for previous saves.
MediumFileDataHandler overwrites the JSON save file directly, and the manager saves on application quit.An interrupted write can damage the save. Write to a temporary file, replace the old file atomically where supported, and retain a backup.
MediumMiniGame.RandomQuestion samples from index 1, excluding index 0; its <= 2 selection condition also differs from the < 2 exhaustion check.Some questions cannot appear through the random path, and repetition limits are inconsistent. Shuffle an explicit question pool and define the intended repeat count.
MediumReadBook.UpdateCH uses the English chapter name and the same txtFile array in both Thai and English branches.Switching languages may leave book content unchanged. Provide language-specific text assets and verify the reading UI.
MediumGameController and IteeSpawner connect stages, backgrounds, enemy lists, and UI through repeated strings and numeric IDs. GameController.Update() also calls Physics2D.OverlapCircleAll(..., 999f, ...) every frame.Adding a period requires edits in several places, and enemy scans are repeated each frame. Move stage configuration into data and update counts and UI on state changes.
MediumIteeSpawner imports UnityEditor from a runtime script.Player compilation may fail outside the Editor. Remove the unused import or isolate Editor-only code.
LowNaming and spelling are inconsistent (IteeSpawner, DataPersistance, Carbrian, Silder). EquipmentUsingSystem is commented out, and magic numbers and debug logs are widespread.The execution path is difficult to follow. Refactor one system at a time, with regression checks around existing behavior.

A practical restoration order is to open the full project in its original Unity version and document the build process; run smoke checks for stages, saves, and crafting; correct numeric and recipe logic; separate item definitions from player state; then reduce coupling between stages, spawning, and UI.

Archive note

The Unity repository name Unity-EraOdesey and several class names differ from the game's title, Era Odyssey. This README retains existing file and class names so references remain accurate. The Unity repository preserves a student team project as it was built, including the engineering decisions that made the original presentation possible and the maintenance work a future revision would require.

License

Original code and documentation authored by Jakkarin Promsee are licensed under the MIT License. Third-party code, assets, datasets, and other materials are not covered by this license; their original terms apply.