andymaul123 / pca-engine

Learning htmx and servers
0 stars 0 forks source link

Adds basic title screen functionality #7

Closed andymaul123 closed 5 months ago

andymaul123 commented 5 months ago

Description

Adds a basic Title Screen to the game with background animation, animated logo, background music, and a set of 4 input options.

This is a first step towards a more refined prototype. Eventually this screen will be preceded by a "publisher splash" screen, but for now, it is the first thing you see when hitting the app.

Also included is a new color palette, Sunfall-12.

Architectural Changes

The index page now includes the 'title-screen.ejs' partial, which contains the background, etc. The New Game option (the only one currently hooked up to do anything), performs a get request to /start, a new route. This replaces the main portion of the title screen with contents from the 'starting-screen.ejs' partial, which sets up the Context Controls, menus, and the first scene of the game.