Skip to content

save_game

Prototypevoid save_game(int slot)

save_game() will save the game into the specified slot (filename SAVEslot.dat).

The following information is stored in the save game file:

Global variables, editor information (type, seq, and frame for 99 sprites on 768 screens), Dink's position, sequence, frame, direction, base hit, base walk, and base idle, and the time the player has been playing the game.

Dink
1.08
Freedink
all

It also stores the map.dat, dink.dat, palette, tiles, and the global functions.

Most notably, it does not store the graphics loaded with dink.ini and init(). If you change sequences in the middle of the game, you will have to add extra logic onto screens with savebots to ensure that the graphics are properly loaded.