HubertReX / Pyved_Roguelike_template

Sample project based on Pyved engine using ECS Roguelike template
GNU Lesser General Public License v3.0
2 stars 0 forks source link

Switch: default font to a monospace pixel art font #10

Closed wkta closed 4 months ago

wkta commented 4 months ago

Idea origin

HubertReX suggested an enhancement :

IMO this enhancement is very important, as the retro-style of the game would greatly benefit from a special "pixel art looking" font.

Observation

There are dozens of ways to implement this, however, my favorite one would be to use a legacy sub-module already available in the pyved_engine

How to proceed?

First and foremost, the legacy component needs to be "unburied" (metaphorically) as several breaking changes have been brought since the day the katasdk 009 component became pyved_engine version 23.6a1

To do so, I suggest we execute the following 5-step plan:

  1. versioning the now old, yet interesting, game-prototype named niobepolis into this repository: https://github.com/gaudiatech/plain-games
  2. ensuring that the use of the pixel art font is still working OK both locally and in the web context. Adapt what needs to be adapted to fix problems and confirm the compatibility between niobepolis and the latest version of PYV
  3. documenting a little bit how to use the pixel art font (you can do so by impacting the official documentation https://gaudiatech.github.io/pyved-engine/)
  4. releasing a new version of PYV
  5. importing that standard way of using pixel art fonts into the current Pyved_Roguelike_template project

Although complex, that plan paves the way for a very easy and very standard usage of pixel art fonts, for every game that relies upon PYV.

wkta commented 4 months ago

To elaborate on the idea described in the past,

I think the legacy demo can be re-used: https://github.com/gaudiatech/niobepolis-demo/ this was written in 2022

In that repo, it is the niobepolis/mashup.py file can be useful, as it contains the in-game console that uses pixelated monospace fonts.

Although that repository exists, step 1 aforementioned shouldn't be skipped, indeed it will be more useful in the long run to have a real port of that demo (port to the pyved_engine) as it will use the 2023-2024 "coding style"+components instead of legacy components and should run in the web browser without relying on a random hack or runs_in_web flag