Skip to content

Game Screens

Anastasia Laczko edited this page May 30, 2021 · 11 revisions

Introduction

The game contains several screen which which implement hte libgdx ScreenAdapter interface. GDXGame contains functionality for transitioning between these screens as it implements the libgdx Game interface, and these transitions can be triggered by the current screen.

Within the base game, there are 3 screens: Main Menu Screen, Main Game Screen, and Settings Screen. The starting screen is the Main Menu Screen.

Usage

Add a new screen

Create a new class which implements ScreenAdaptor, e.g. NewScreen.

In GDXGame Add NEW_SCREEN to ScreenType and modify newScreen.

  private Screen newScreen(ScreenType screenType) {
    switch (screenType) {
      ...
      case NEW_SCREEN:
        return new NewScreen(this);
      ...
    }
  }

  public enum ScreenType {
    MAIN_MENU, MAIN_GAME, SETTINGS, NEW_SCREEN
  }

Switch screen

Behind the Scenes

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