Skip to content

Level Builder Design

embronk edited this page Apr 5, 2022 · 12 revisions

Overview

The level builder will allow the player to set where the enemy, neutral, and player cities are and decide on the season.

File Format

File Format

  • File will be in binary.
  • File will begin with the string "Level" to prove that it is a proper save file of the game.
  • File will then have an integer X representing the number of items in the Entity List.
  • Following that, there will be X sections representing X entities.
    • Section will start with a string identifying the season
    • Section will then have two doubles representing the location coordinates.
    • There will be a char representing nationality.

Sample File

(Text representation of binary)

Level
4
Spring|5|21|P|
Summer|100.0|100.0|P|
Fall|70.4|46.2|N|
Winter|300.2|267.4|E|

Links

Clone this wiki locally