chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.51k stars 470 forks source link

Real-time Clock #1305

Open k5jat opened 11 months ago

k5jat commented 11 months ago

Is your feature request related to a problem? Please describe. The problem is I'd like to use the RTC of the Analogue Pocket and it's not supported.

Describe the solution you'd like Please implement the RTC in the AP version of your software and also in the compiler.

Describe alternatives you've considered To have real-time events, it requires a way to keep track of time. I can't do that if there is no way to do so. May using a physical cartridge with an RTC, but I'd like to make my work available for immediate play without extra hardware.

Additional context I love the idea of being able to have real-time events triggered, similar to certain Pokémon games for the GB and GBC but a bot more advanced. The events would be night and day cycles, with weather, e.g. fog/drizzle for early morning, heat for afternoon, etc... Not to mention, NPC's only being available during a certain time.

RichardULZ commented 10 months ago

https://github.com/pau-tomas/gb-studio-plugins#real-time-clock This is exposed with plugins, add a plugins folder to your project (not in assets) and restart gbstudio.

https://docs.google.com/spreadsheets/d/1d2F5hSEMt6nkacw-qVnYlT3IPHqmCCaLFhRboC5xxc0/edit#gid=0 List of some plugins pinned in the gbstudio discord plugins channel.