1
0
mirror of https://github.com/libretro/libretro-database synced 2024-11-23 14:26:39 +00:00
libretro-database/cht/TIC-80
2020-12-28 05:24:06 -05:00
..
8 Bit Panda.cht Create 8 Bit Panda.cht 2019-07-19 02:18:58 -04:00
Dangerous Dave.cht tic80: Add Dangerous Dave cheats for TIC-80 2019-07-19 01:47:44 -04:00
FPS80.cht Create FPS80.cht 2019-07-28 21:30:59 -04:00
Mario Bros.cht Create Mario Bros.cht 2019-07-19 02:00:49 -04:00
README.md tic80: Fix cheats documentation 2020-01-21 04:20:44 -05:00
Super Meat Boy TIC-80 Demake.cht tic80: Add Super Meat Boy cheats 2020-12-28 05:24:06 -05:00

TIC-80 Cheats

These are cheats available for TIC-80 games when played through RetroArch/libretro.

Usage

  1. Start a game
  2. Open up the Quick Menu (F1)
  3. Cheats --> Load Cheat File (Replace)
  4. Select the cheat related to the game you're playing
  5. Toggle the desired cheat ON to enable the cheat

Development

To create a cheat, you'll use the following format:

TIC-80/My Game.cht

cheats = 2

cheat0_desc = "First Cheat"
cheat0_code = "0 1"
cheat0_enable = false

cheat1_desc = "Second Cheat"
cheat1_code = "1 58 2 45 3 41"
cheat1_enable = false

The cheat0_code represents a string of numbers. The first number is the index in persistent memory, and the second number is the desired value. This can be multiple pairs of index values.

In the above example, cheat0_code = "0 1" would the same as calling pmem(0, 1). For cheat1_code = "1 58 2 45 3 41", that would be the same as calling...

pmem(1, 58)
pmem(2, 45)
pmem(3, 41)

To find the pmem indexes for game, you'll have to look through the source code to find which pmem index is for what function.