Files
2017-05-10 21:16:51 -04:00

105 lines
2.9 KiB
HolyC

/*
Scenes are defined here.
A Scene is a backdrop with a mask.
Mask contains rects,
Bounds clipped at color < 1
color == 1 : Terry can walk here
color > 1 : scene transition
_id : # of Scene
_bx : Scroll backdrop to -x
_nx : Terry X (on viewport)
_ny : Terry Y (on viewport)
*/
Scene *s_ptr;
Scene *m_ptr;
Scene *scenes=CAlloc(sizeof(Scene));
// 00
m_ptr=SceneAdd(-120, 320, 240, "Outside Terry's House", "Scenes/00.SCENE.GR", "Scenes/00.PATH.GR", scenes);
StrCpy(m_ptr->song, "5qD4A5G4G5E4BeG5D4G5E5qD4A5G4G5E4BeG5D4G5E5q4AetB5E4Gq5CeEEsCECEqDetG4B5DE4G5C5q4AetB5E4Gq5CeEEsCECEqDetG4B5DE4G5C");
// to Asteroid Way
m_ptr->st_id[2]=1;
m_ptr->st_bx[2]=-544;
m_ptr->st_nx[2]=480;
m_ptr->st_ny[2]=320;
// test for open garage
m_ptr->st_id[6]=3;
//m_ptr->st_bx[2]=-544;
m_ptr->st_bx[6]=-160;
m_ptr->st_nx[6]=320;
m_ptr->st_ny[6]=300;
// 01
m_ptr=SceneAdd(0, 0, 300, "Asteroid Way", "Scenes/01.SCENE.GR", "Scenes/01.PATH.GR", scenes);
StrCpy(m_ptr->song, "5M6/8q4Get5EDDG4GGqGeA5GsD4G5D4G5M6/8q4Get5EDDG4GGqGeA5GsD4G5D4G5qFs4B5C4B5CqGet4A5FDe4B5Cet4AG5CqC4B5qFs4B5C4B5CqGet4A5FDe4B5Cet4AG5CqC4B");
// to Green Valley Grocery
m_ptr->st_id[2]=2;
m_ptr->st_bx[2]=-1024;
m_ptr->st_nx[2]=480;
m_ptr->st_ny[2]=320;
// to Outside Terry's House
m_ptr->st_id[3]=0;
m_ptr->st_bx[3]=0;
m_ptr->st_nx[3]=70;
m_ptr->st_ny[3]=270;
// 02
m_ptr=SceneAdd(0, 0, 300, "Green Valley Grocery", "Scenes/05.SCENE.GR", "Scenes/05.PATH.GR", scenes);
StrCpy(m_ptr->song, "6M6/8qGetF5GBe.Bs6Cq5BAetG6C5B6M6/8qGetF5GBe.Bs6Cq5BAetG6C5B6eGGCCet5BGAe6GDqDs5B6D5B6DqGsCFCF6eGGCCet5BGAe6GDqDs5B6D5B6DqGsCFCF");
// teleport back to Outside Terry's House
m_ptr->st_id[2]=0;
m_ptr->st_bx[2]=0;
m_ptr->st_nx[2]=70;
m_ptr->st_ny[2]=270;
// 03
m_ptr=SceneAdd(0,0, 300, "Terry'sGarage", "Scenes/06.SCENE.GR", "Scenes/06.PATH.GR", scenes);
StrCpy(m_ptr->song, "2qGeEEs1B2E1B2EetCCRq1B2FCet1BAB2qGeEEs1B2E1B2EetCCRq1B2FCet1BAB2sDFDF1BBBBe2F1G2EDqE1AB2E2sDFDF1BBBBe2F1G2EDqE1AB2E");
// Exit to street Outside Terry's House
m_ptr->st_id[2]=0;
m_ptr->st_bx[2]=-200;
m_ptr->st_nx[2]=320;
m_ptr->st_ny[2]=240;
// (Opened) Door to Kitchen
m_ptr->st_id[6]=4;
m_ptr->st_bx[6]=0;
m_ptr->st_nx[6]=320;
m_ptr->st_ny[6]=300;
// 04
m_ptr=SceneAdd(0,0, 300, "Terry's Giant Kitchen", "Scenes/07.SCENE.GR", "", scenes);
//StrCpy(m_ptr->song, "2qGeEEs1B2E1B2EetCCRq1B2FCet1BAB2qGeEEs1B2E1B2EetCCRq1B2FCet1BAB2sDFDF1BBBBe2F1G2EDqE1AB2E2sDFDF1BBBBe2F1G2EDqE1AB2E");
m_ptr->path->color=1;
GrRect(m_ptr->path,0,430,960,96);
m_ptr->path->color=2;
GrRect(m_ptr->path,0,446,960,96);
m_ptr->st_id[2]=3;
m_ptr->st_bx[2]=-220;
m_ptr->st_nx[2]=346;
m_ptr->st_ny[2]=146;
// 02 (old)
//m_ptr=SceneAdd(0, 0, 300, "Vegas Blvd", "Scenes/02.SCENE.GR", scenes);
//GrLine(m_ptr->path,1143,312,1143,450);
//GrRect(m_ptr->path,960,430,240,96);
//m_ptr->path->color=3;
//GrRect(m_ptr->path,1164,416,76,48);
s_ptr=*scenes;