Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

PQ93

a fantasy console for making small games · By transmutrix

Persistent data and multiple files?

A topic by Juno Nguyen created Jun 18, 2020 Views: 251 Replies: 2
Viewing posts 1 to 3

Hi,

I have already gone through the manual, but there are questions I have not been able to find answers for (resources for this is also currently quite non-existent, so sadly googling doesn't do the trick):

1. Is there any method to store persistent data across sessions? In other words, some form of savedata?

2. Is inclusion of multiple files possible? This is something I couldn't exactly test in the demo. Does pointing to an external file with `require` work the same way it does in native Lua and moonscript? I'm just trying to organize a more traditional file structure. It was pretty painful the last time I dumped everything into a huge single file.

Developer

There currently isn't any facility for game saves, no. My rationale for this at the time was that PQ93 is quite simple, and most games made with it will be simple enough not to need saves. However, even the simplest games have a hi-score screen traditionally, so I may need to rethink this.

It is possible to create "multicarts", as described in the manual: the 'merge' function allows you to load graphics, maps, etc. from another cart. However, there is currently *not* a way to split your code among multiple files (real or simulated).

You can edit your cartridge with any text editor, which helps somewhat with the "huge file in a crappy editor" problem.

Thank you for your answer.

I did write my last game with VSCode, and even with outlines, it was a tad painful. None of these are exactly essential things, but they would have made a complete package for my needs.

I would consider QP93 nevertheless.