Skip to content

Level Builder Design

Gunnar Funderburk edited this page Apr 27, 2021 · 5 revisions

Overview

The level builder will allow the user to define custom levels by modifying one of the following attributes

  • Obstacles and Placement of Obstacles
  • Difficulty
  • Name of Level
  • Time allowed to win the level
  • Health Orbs
  • Image of Level
  • Number of Enemies

The user will be able to manipulate all of said variables with drag and drop. To be specific, the user can drag items onto the screen and then modify their attributes if needed. Finally, when they are finished writing their own level, they may save the level in a form playable by the game.

In addition, the user will be able to open a level of the game and modify it using the same techniques previously described.

File Format

A level save file will be a .txt file with the following format.

  1. Level Details L
  2. Obstacles or Fish O 3

Line Delimiter = "/r" (CR)(13)

Attribute Delimiter= ","


Example

L "The Aquarium",1, Aquarium.png,9 ,1

O type concrete, coordinate 4,y coordinate` 3

O type concrete, coordinate 4,y coordinate` 3

O type fish 1 ,x coordinate 2, y coordinate 3

O type fish 11,x coordinate 7, y coordinate 4


Links to Model Classes

Clone this wiki locally