Skip to content

Death Wall Monster

Dollar0712 edited this page Oct 9, 2021 · 9 revisions

Purpose

The purpose of this feature is to create a sense of pressure for the player to move forward and this is more in keeping with the escape theme of the game. In detail, when the game starts, a death wall monster will slowly move from the left edge of the map to the right edge of the map. When the player is overtaken by the death wall, the player will be killed instantly.

Functionality

Create Death Wall

Use the createDeathWall function in ObstacleFactory.java to create a death wall entity and use spawnDeathWall to generate it in the map. The location setting of the spawnDeathWall can be customized if required and will default to the far left of the map.

Damage setup

The insta-kill functionality was simple to implement. Within ObstacleFactory, a CombatStatsComponent was added to the deathWall and given a base attack of 100:

.addComponent(new CombatStatsComponent(config.health, 100))

a .atlas file was then used to add animations to the serpent

Camera showing setup

To use the intro camera of death wall, introCam function in ForestGameArea.java to will set the speed of the duration by calling it in render in the mainGameScreen.java

Speed setups

To set the speed of the death wall, simply passing the (float) speed variable to createDeathWall function which is called in spawnDeathWall

showcase

Level 1 Monster

Table of Contents

Home

Introduction

Main Menu

Main Game Screen

Gameplay

Player Movement

Character Animations

Enemy Monster Design and Animations

Game basic functionalities

User Testing

GitHub Wiki Tutorial

Game Engine

Getting Started

Documentation

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