Skip to content

Bench Upgrade

Sarahkhalek edited this page Sep 12, 2024 · 12 revisions

This wiki will outline the design decisions involved with the grid layout and bench upgrades.

Grid creation

Bench tile design

bench_test We started off by creating this tile to simply test if we would be able to string multiple of them together to create a bench. This is a 2x2.

Change of plans

The initial plan was to create a grid in order to place the benches. The idea was to create something similar to the tiles being created in the TerrainFactory. So we tried creating a new type of tile called Bench and implementing it by adding into the layer being created the same way I created the Customer Tiles when we implemented the blue area for customers. A function was added called create_bench_grid. However, after spending a few hours doing this, we realised the inefficiency of the idea. It would created issues when having to deal with collisions and we also realised that the benches should not be created the same way floor tiles are. This is because Benches are objects/obstacles and hence should not be part of the terrain. It would be more suitable to create them on top of that terrain being created. The initial commits on the team7-bench branch are attempts of this implementation.

Modifying ForestGameArea

We decided to switch into adding the bench tiles into ForestGameArea. Multiple bench designs had to be created to create a layout similar to what we had in the first sprint. Here are a few examples:

left_shadow top_left_corner_final bottom

These were all created using photoshop by our team (similarly to the new player sprite that we created). The Bench.java class was completely rewritten by removing most of what was written since they were no longer needed. All that is being done in this class is mostly creating components like PhysicsComponent and ColliderComponent. The benches were spawned by adding multiple tiles next to each other (setting the coordinates was pretty simple due to the size of a bench tile fitting a floor tile). Once this was done we were able to create whole benches. Screenshot 2024-09-12 at 10 09 41 AM

Table of Contents

Home

Team Design Document

Game Features

Inventory System
Scoring System
Food Recipes
Level System
Player Actions
Ordering System
Stations
Items
Map Design
Customers
Pause Menu
Upgrades
End of Day Display
Day Night Cycle
Moral System
Debug Terminal
Game Interactions Tutorial
Backstory Cutscenes

Game

Getting Started

Entities and Components

World Backstory

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Map Design

Test Plans

Sensor Component

Customer Sensor Component

Interaction Component

Inventory Component

Inventory Display

Station Meal Component

Station Progress Display

Keyboard Input Component

Fire Extinguisher Handler Component

Score System

HoverBox Component

MainGameActions Create Docket Triggers

End Day Display Component

Cutscene Area

Docket

Docket Line Display

Docket Meal Display

Main Game Order Button Display

Order Actions

Recipe

Ticket Details Component

BackstoryCutscene Test Plan

BackstoryCutsceneDisplay Test Plan

Test Plan for Tutorial

Keybinds

Keybinds Test Plan

Test Plan for MainGameOrderTicketDisplay

Test Plan for MainGameOrderBtnDisplay

Test Plan for Docket

Test Plan for DocketLineDisplay

Test Plan for OrderActions

Ticket Details

Test plan for RandomComboService

Test plan for LoanUpgrade

Test plan for UpgradesDisplay

Test plan for RageUpgrade

Test plan for SpeedBoostUpgrade

Test plan for DancePartyUpgrade

Test plan for ExtortionUpgrade

Troubleshooting

MacOS Setup Guide

Clone this wiki locally