andymaul123 / pca-engine

Learning htmx and servers
0 stars 0 forks source link

Intro Screen with Scrolling Text #19

Closed andymaul123 closed 2 months ago

andymaul123 commented 3 months ago

This PR adds a new feature to the beginning area of the game. When a player selects New Game, instead of dropping them directly into /start, the game now sends them to /scroll-intro. This screen will overlay the title background animation and display some text that crawls up from the bottom.

Clicking will end the animation, if it's still running, and overlay another bit of content with the text 'Begin Adventure'. Clicking this will move the player to the starting scene.

HTMX view transitions were removed in favor of using the transition-animation-wrapper element.