Posted version 0.99e, better Windows version, Win9x support and timing fixes


This update adds a slightly better Windows version that allows selecting a custom resolution. The game still uses GDI and scales to the desktop resolution, just now it isn't locked to 320x200 nor uses a hardcoded aspect ratio. Also the code has been modified to compile with Free Pascal 2.2.4 which is the last version that could create Windows 9x compatible executables, meaning that it will now work on retro PCs - at least retro PCs powerful enough to run the game in GDI anyway (meaning that you most likely wont get any decent framerate unless you both the game and the desktop is at 640x480 and you have something like a Pentium 3). Perhaps in the future i might add a DirectDraw graphics driver.

Note that even though you can select something like a 4K resolution, chances are that even on a modern PC the software renderer will be too slow to run smoothly. In general i do not recommend anything above 960x540 or so. The configuration dialog that appears when you start the game provides two automatically calculated resolutions based on the current desktop resolution, one that is always at 200 pixels high (so that in-game screens appear at their full size) and another that is the closest integer scale to 320x200.

In addition to the above, this update fixes some timing issues when the game was running at low framerate - previously the animation was using the current system time but because the current frame was also used for some events and state changes, these frames could be skipped, causing the events and state changes to not happen. Now the animation time is updated at a fixed rate synchronized with the overall engine update rate, meaning that no events should be missed due to skipped frames.

The full changelog is this:

  • The Windows version of the game (gdipetra.exe) will now display a configuration dialog before starting, allowing for custom resolutions (an appropriate resolution for the current aspect ratio is automatically chosen).
  • The Windows version also works under earlier versions of Windows, like Windows 95 and Windows 98 (note that this is only valid for the game, the editor still requires Windows 2000).
  • Game screens are now centered depending on the game resolution (this is not ideal since at very high resolution everything appears tiny, but fixing this would require changing how screens are drawn - perhaps in a future update).
  • The aspect ratio is now calculated properly from the resolution.
  • Animation time is now updated in sync with the overall update time, fixing some issues when running at lower framerates and using animation frames as events (running at lower framerates skipped frames which caused events to not be fired) and state changes (e.g. jumping forward could cause the game to "softlock" for a few seconds).
  • The game code now compiles with Free Pascal 2.2.4 which is the last version to support Windows 95.

Files

Petra099e.zip 821 kB
May 17, 2020
Petra099eEditor.zip 1.7 MB
May 17, 2020
Petra099eSource.zip 143 kB
May 17, 2020

Get Post Apocalyptic Petra

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.