Skip to content

City path and Flood generation fix

kaitlyn-lake edited this page Oct 17, 2022 · 2 revisions

Issue

There was a game play bug after Sprint 3 in which the flooding events were overriding the city path tiles, so they would appear momentarily at the beginning of the game and quickly disappear. It was discovered this was because the map terrain is built before BuildingGenerator and thus PathGenerator, and the flooding functionality worked by returning a new terrain component each time the flooding event was run.

Fix

This was fixed by modifying AtlantisGameArea to run the BuildingGenerator and PathGenerator during initialisation.

image

The flood() method could then be modified so as to replace the city paths according to what it had built during initialisation, by calling spawnPaths(...)

image

Table of Contents

Home

Game

Game Home

Design Influences

Gameplay Features

Style

Story

Friendly Units
Map
City
Buildings
Unit Selections

Spell

Game User Testing: Theme of Unit Selection & Spell System

UI User Testing

Tutorial

Resource Stats Display

Loading Screen Bar

Health Bars
In Game menu
  • Feature
  • User Testing:In Game Menu

Landscape Tile Design

Landscape Tile Design Feedback

Weather Design

Weather Design Feedback

Camera Movement

Enemy design

Enemy Units

Enemy AI

How Animation Works

Map Flooding

Game Engine

Getting Started

Entities and Components

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Troubleshooting

MacOS Setup Guide

Clone this wiki locally