Skip to content

Level Builder Design

embronk edited this page Apr 13, 2022 · 12 revisions

Overview

The level builder will allow the user to place the enemy, neutral, and player cities wherever they want on the map, and decide on the season in which they want to play. It will then save and load the level in the main program so that the user can play the game using the level they created.

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 have a String identifying the season
  • 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 have two doubles representing the location coordinates.
    • There will be a char representing nationality.

Sample File

(Text representation of binary)

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

Links

Level Designer Model
Level Data Class
Level Data Tests

Design Review

  • Date: 4/8/22
  • Time: 6:20 p.m.
  • Reviewer: Rhys Fuller
  • Suggestions: Rework save so it takes the cities locations and the map season.
  • Revisions: Completed

Clone this wiki locally