Skip to content

Day and Night Cycle Clock UI

Pranav2087 edited this page Sep 13, 2022 · 14 revisions

Page Navigation

Jump to a section or return to Day and Night Cycle Summary here!

Summary

The clock acts like a source of information to keep the player updated with the changes bought in by the DayNightcycle. The method of approach taken to achieve this was through the implementation of UI. The DayNightClockComponent works as an attachment to the MainGameScreen. The implementation is similar to the other UI elements present in the game.

Technical

MainGameScreen

The MainGameScreen has the following command for attaching the DayNighClockComponent to the screen and also loads the sprites for the clock. It helps in loading the assets which is further used in the DayNightClockComponent. 11

DayNightClockComponent

The function called addClock which takes care of bringing the sprite on and having it displayed using the table and stage commands. Screenshot (3)1

Testing

Day Night Clock Demonstration From the above video we can see the functionality of the clock in respect to the game. The clock has its section divided for each part of the cycle which represent the current part of the cycle. It change as the time passes in the game and have the number displayed showing the each cycle pass.


Return to Day and Night Cycle Summary

Table of Contents

Home

How to Play

Introduction

Game Features

Main Character

Enemies
The Final Boss

Landscape Objects

Shop
Inventory
Achievements
Camera

Crystal

Infrastructure

Audio

User Interfaces Across All Pages
Juicy UI
User Interfaces Buildings
Guidebook
[Resource Management](Resource-Management)
Map
Day and Night Cycle
Unified Grid System (UGS)
Polishing

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