/*
 *  main.rez
 *  BuGS
 *
 * Created by Jeremy Rand on 2020-06-10.
 * Copyright © 2020 Jeremy Rand. All rights reserved.
 */


#include "types.rez"
#include "main.h"


/* Update info */
#define rUpdateInfo $DEAD  /* RIP Jerry Garcia */
/*--------------------- rUpdateInfo -------------------------*/
type rUpdateInfo {
	integer = 0;		    /* version must be zero */
	longint;				/* Resource ID of string holding app's display name */
	longint;				/* ID of string holding author's name */
	longint;				/* ID of string URL to the downloads folder */
	longint;				/* ID of string for downloadable archive name */
	longint;				/* ID of string for Versions.List data file */
};


resource rPString (DISPLAY_NAME_STR, $0000) {
	"BuGS"
};


resource rPString (AUTHOR_NAME_STR, $0000) {
	"Jeremy Rand"
};


resource rPString (DOWNLOAD_URL_STR, $0000) {
	"http://downloads.rand-emonium.com/files/"
};


resource rPString (ARCHIVE_STR, $0000) {
	"BuGS100.shk"
};


resource rPString (VERSIONS_DATA_FILE_STR, $0000) {
	"jrand"
};


resource rUpdateInfo (UPDATE_INFO, $0000) {
	DISPLAY_NAME_STR,		// app's display name
	AUTHOR_NAME_STR,		// author's name
	DOWNLOAD_URL_STR,		// URL to downloads folder
	ARCHIVE_STR,			// Name of downloadable archive
	VERSIONS_DATA_FILE_STR	// Name of data file for Versions.List
};


/* Version resource */
resource rVersion (1) {
    {
        1,          /* Major version number in BCD */
        9,          /* Minor version number in BCD */
        3,          /* Bug version number in BCD */
        beta,       /* Development phase */
        0           /* Release number */
    },
    verUS,
    "BuGS",
    "Copyright \$A9 2021 Jeremy Rand"
};


/* Bundle */
resource rBundle (1, preload, nospecialmemory) {
	BUGS_ICON,
	1,
	{
		{
			$0081,
			{0},
			{BUGS_ICON},
			{0},
			"",
		},
		Filetype+Filename,
		MatchFileType {{$B3}},
		empty {},
		MatchFileName {{"BuGS"}},
		empty {},
		empty {},
		empty {},
		empty {},
		empty {},
		empty {},
		empty {},
		empty {},
		empty {}
	}
};


/* Icons */
resource rIcon (BUGS_ICON) {
	0x8000,
	0x002F,
	0x003C,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A8AEEE803FFFFFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFFF22AAE2A0F444E2EEAAA83FFFFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFFC8AAE8A84C444E2AAAAAE83FFFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFFC2EEAA807C4448AEEEEEEE8FFFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFFCAAAA0284444A2EAEAAAAA8FFFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFF2EEEEEEEAEAAAAAAAAEEEEE3FFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFF02AAAAAAEAA80002EEAAAEE3FFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFFFCFCAEA800E00400ACAA8EECFFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFFFCC3000203E0440428AA2EEE0FFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFFFFFFFFF3FFFF080F44444A82E2AAA200FFFFFFFFFFFC00F"
	$"FFFFFFFFFFFFFFFFFFFFFC000444644442E0A8AEA8AAA0FFFFFFF0002EE3"
	$"FFFFFFFFFFFFFFFFFFFFF04444440000028AE0AAA2EEEE3FFFF002EAAA2C"
	$"FFFFFFFFFFFFFFFFFFFF0744C4A7C0304A0A028AA2AA8A80000AEE2EEEA0"
	$"FFFFFFFFFFFFFFFFFFF0F4CC40A74074A8202AA88AA2AAEEEEEAA8EEECC8"
	$"FFFFFFFFFFFFFFFFFFCC4074FC28446A808AA8802AE22EAAAAAEA2EEEA83"
	$"FFFFFFFFFFFFFFFFFFC7407403C2AEA02A22002EE2A08AAAA2000AAAA83F"
	$"FFFFFFFFFFFFFFFFFFC740074430000200CEEEEEEE6A200000FC2EEE83FF"
	$"FFFFFFFFFFFFFFFFFFF074000440000EEEEEEEEEECAE8A288000AAAAE3FF"
	$"FFFFFFFFFFFFFFFFFFFC044000008AA2CEEEEE66CECAC220EE8AAAAA0FFF"
	$"FFFFFFFFFFFFFFFFFFFFC00400AAE220EEEEEEEEEEE6A88288AAA800FFFF"
	$"FFFFFFFFFFFFFFFFFFFFFF00AAEC88880EEEEEEEE4448A228EEE83FFFFFF"
	$"FFFFFFFFFFFFFFFF003FC0AAEC8A2E22026666666EAAAAAACAA83FFFFFFF"
	$"FFFFFFFFFFFFFF00AA802AAAAAA20000F0EEEEEECAAAEEEEE283FFFFFFFF"
	$"FFFFFFFFFFFFF0AEEEEEA2A02800FFFFFC0000022AAE88AA2C3FFFFFFFFF"
	$"FFFFFFFFFFFFC2EEAAAA8A03C03FFFFFFFFFFFFCAAA00004E8FFFFFFFFFF"
	$"FFFFFFFFFFFFCAAA00202C3FFFFFFFFFFFFFFFF2AC0FFF2EA3FFFFFFFFFF"
	$"FFFFFFFFFFFFCEE83C0AA8FFFFFFFFFFFFFFFFFC03FFFCE2CFFFFFFFFFFF"
	$"FFFFFFFFFFFFCEA0FF0AE3FFFFFFFFFFFFFFFFFFFFFFF2A83FFFFFFFFFFF"
	$"FFFFFFFFFFFFCA03FCA803FFFFFFFFFFFFFFFFFFFFFFFC03FFFFFFFFFFFF"
	$"FFFFFFFFFFFFCC3FFF00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
	$"FFFFFFFFFFFFC0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
	$"0000000FF000000000000000000000000000000000000000000000000000"
	$"0000000FF000000000000000000000000000000000000000000000000000"
	$"000000FFF000000000000000000000000000000000000000000000000000"
	$"000000FF0000000000000000000000000000000000000000000000000000"
	$"000000FF0000000000000000000000000000000000000000000000000000"
	$"000000FF0000000000000000000000000000000000000000000000000000"
	$"000000FF0000000000000000000000000000000000000000000000000000"
	$"000000FFF000000FFFFFFFF0000000000000000000000000000000000000"
	$"0000000FFFF00FFFFFFFFFFFF00000000000000000000000000000000000"
	$"0000000FFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000"
	$"FFFF000FFFFFFFFF000000FFFFF000000000000000000000000000000000"
	$"FFFFFFFFFFFFFFFFFF00000FFFF000000000000000000000000000000000"
	$"0FFFFFFFFFFF00FFFFFF0000FFF000000000000000000000000000000000"
	$"000FFFFFFF000000FFFFF000FFFFFFFF0000000000000000000000000000"
	$"000000000000000000FFFFFFFFFFFFFFFFF0000000000000000000000000"
	$"0000000000000000000FFFFFFFFFFFFFFFFFF00000000000000000000000"
	$"0000000000000000000FFFFFFFFFFFFFFFFFFFF000000000000000000000"
	$"0000000000000000000FFFFFFFF0FFFFFFFFFFFF00000000000000000000"
	$"000000000000000000FFFFFFFFFFFFFFFFFFFFFFF0000000000000000000"
	$"000000000000000000FFFFFFFFFFFFFFFFFFFFFFF0000000000000000000"
	$"000000000000000000FFFFFFFFFFFFFFFFFFFFFFF0000000000000000000"
	$"000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000"
	$"000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000"
	$"0000000000000000000F0FFFFFFFFFFFFFFFFFFFFF000000000000000000"
	$"0000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF00000000000000000"
	$"00000000000000000000F0000FFF0FFFFFFFFFFFFFFFF00000000000FFF0"
	$"000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFF0000000FFFFFFF"
	$"000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFF"
	$"00000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
	$"0000000000000000000F0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
	$"000000000000000000FFFFFF0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
	$"000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0"
	$"000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0FFFFFFF00"
	$"0000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00"
	$"0000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000"
	$"00000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000"
	$"0000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000"
	$"0000000000000000FFF0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000"
	$"00000000000000FFFFFFFFFFFFFFFFFF0FFFFFFFFFFFFFFFFFFF00000000"
	$"0000000000000FFFFFFFFFFFFFFF00000FFFFFFFFFFFFFFFFFF000000000"
	$"000000000000FFFFFFFFFFFFFFF000000000000FFFFFFFFFFF0000000000"
	$"000000000000FFFFFFFFFFF0000000000000000FFFF000FFFF0000000000"
	$"000000000000FFFFFFFFFF00000000000000000FFF000FFFF00000000000"
	$"000000000000FFFF00FFFF00000000000000000000000FFFF00000000000"
	$"000000000000FFFF0FFFFF00000000000000000000000FFF000000000000"
	$"000000000000FFF000FF0000000000000000000000000000000000000000"
	$"000000000000FF0000000000000000000000000000000000000000000000"
};


/* Tools */
resource rToolStartup (TOOL_STARTUP) {
#if DESKTOP_RES_MODE == 320
    mode320,
#else
    mode640,
#endif
    {
        3,  $0100,      /* Misc Tool */
		8,  $0100,	    /* Sound Tool */
		30, $0100,      /* Resource Manager */

    }
};


/* Sounds */

type rRawSound {
	hex string;
};

read rRawSound (BONUS_SOUND) "sound/bonus.raw";
read rRawSound (DEATH_SOUND) "sound/death.raw";
read rRawSound (FIRE_SOUND) "sound/fire.raw";
read rRawSound (KILL_SOUND) "sound/kill.raw";
read rRawSound (SEGMENTS_SOUND) "sound/segments.raw";
read rRawSound (SPIDER_SOUND) "sound/spider.raw";
read rRawSound (EXTRA_LIFE_SOUND) "sound/extralife.raw";
read rRawSound (FLEA_SOUND) "sound/flea.raw";
read rRawSound (SCORPION_SOUND) "sound/scorpion.raw";
