Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
RabbitCity 2 Remastered | P4rr0t | Single player | N/A |
#include "MLLE-Include-1.4.asc"
const bool MLLESetupSuccessful = MLLE::Setup();
#pragma require "JC2lvl61-MLLE-Data-1.j2l"
#pragma require "JazzCity2_Boat.j2t"
#pragma require "JC2lvl61.j2l"
/*************************************************
Created by Parrot86 - RabbitCity 2: The Secret Room Remastered
*************************************************/
void onLevelLoad() {
jjAlert("||Level Name: |First Police Station 3 / 4");
jjAlert("||RabbitCity 2: The Secret Room Remastered - Level: |6 1");
jjAlert("");
jjAlert("");
jjTexturedBGFadePositionY = 1;
jjUseLayer8Speeds = true;
}
// Doors - Thank for zepect!
array<bool> keyPressed(256, false); //arrays holds the state of the keys
int myArea = 0;
bool inArea(jjPLAYER@ p, int x1, int y1, int x2, int y2) {
return ((p.xPos > (x1*32)) && (p.xPos < x2*32 + 32) && (p.yPos > (y1*32)) && (p.yPos < y2*32 + 32));
}
void onKeyDown(jjPLAYER@ p, int key) {
if(key == 0x26) { //0x26 is up arrow key (all keys at http://msdn.microsoft.com/en-us/library/dd375731(VS.85).aspx)
if(myArea == 1) p.warpToID(3, true);
else if(myArea == 2) p.warpToID(3, true);
else if(myArea == 3) p.warpToID(2, true);
else if(myArea == 4) p.warpToID(5, true);
else if(myArea == 5) p.warpToID(4, true);
}
}
void onPlayer(jjPLAYER@ p) {
for(int i = 0; i < 256; i++) { //loop through all the keys
if(jjKey[i] && !keyPressed[i]) {
onKeyDown(p, i);
keyPressed[i] = true;
} else if(!jjKey[i] && keyPressed[i]) keyPressed[i] = false;
}
if(inArea(p, 7, 7, 7, 7)) myArea = 1;
else if(inArea(p, 10, 84, 10, 84)) myArea = 2;
else if(inArea(p, 29, 56, 29, 56)) myArea = 3;
else if(inArea(p, 251, 47, 251, 47)) myArea = 4;
else if(inArea(p, 189, 22, 189, 22)) myArea = 5;
else myArea = 0;
}
bool onDrawHealth(jjPLAYER@ player, jjCANVAS@ canvas) {
if(myArea == 1 || myArea == 2 || myArea == 3 || myArea == 4 || myArea == 5) {
canvas.drawString(220, 370, "Press UP to walk through!", STRING::MEDIUM, STRING::BOUNCE, 1);
}
return false;
}
void onFunction1() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** NOTICE: RESTRICTED AREA ***");
jjAlert("This area is under 24hour video surveillance");
jjAlert("|*** WARNING! NO GUNS ALLOWED ***");
jjAlert("");
}
void onFunction2() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** NO ENTRY ***");
jjAlert("");
jjAlert("");
}
void onFunction3() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("*** IT'S UNLOCKED - ID ACCESS CARD USED ***");
jjAlert("");
jjAlert("Player:||||| Yay!");
}
void onFunction4() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("*** IT'S UNLOCKED - ID ACCESS CARD USED ***");
jjAlert("");
jjAlert("");
}
void onFunction5() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| Uh? I found a two SWAT is alive?");
}
void onFunction6() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("SWAT:||||| Stop it! Get drop the gun or kill you!");
jjAlert("Player:||||| Why?");
}
void onFunction7() {
p.kill();
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** KILLED BY SWAT ***");
jjAlert("");
jjAlert("");
jjAlert("SWAT:||||| You are a bad Player");
jjAlert("Player:||||| AUGH!");
}
void onFunction8() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** IT'S LOCKED - NO ENTRY ***");
jjAlert("");
jjAlert("Player:||||| Heh...");
}
void onFunction9() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** IT'S LOCKED - UNKNOWN ***");
jjAlert("");
jjAlert("Player:||||| Unknown? what is this?");
}
void onFunction10() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("*** IT'S UNLOCKED - ID DOOR CODE: A7 ***");
jjAlert("Computer Info: Unlocked");
jjAlert("");
jjAlert("Player:||||| Finally!");
}
void onFunction11() {
jjAlert("");
jjAlert("Player:||||| Are you alive?");
jjAlert("???:||||| Uh oh Player Wanted!");
jjAlert("Player:||||| Please stop it, but who are you?");
jjAlert("Miffy:||||| Sorry, I am Miffy, but I'm scared");
jjAlert("Player:||||| OK, where is heliport?");
jjAlert("Miffy:||||| Meh, Go to elevator with 3 floor");
jjAlert("Player:||||| Thanks!");
}
void onFunction12() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| Oh finally, helicopter is here!");
}
void onFunction13() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Charlotte:||||| Helicopter is here! Follow me!");
jjAlert("Player:||||| OK");
}
void onFunction14() {
p.showText("@@@@@@@@#YOU FOUND A SECRET AREA!", STRING::MEDIUM);
}
void onDrawLayer4(jjPLAYER@ p, jjCANVAS@ canvas) {
canvas.drawString(277*32+10, 92*32-16, "|Office Room",STRING::SMALL);
canvas.drawString(168*32+10, 7*32-16, "|Exit",STRING::SMALL);
canvas.drawString(260*32, 69*32-16, "|ID DOOR CODE: A7",STRING::SMALL);
canvas.drawString(16*32, 54*32-16, "|ID DOOR CODE: A7",STRING::SMALL);
canvas.drawString(184*32+15, 17*32, "||||A1 - HELIPORT",STRING::MEDIUM);
}
Jazz2Online © 1999-INFINITY (Site Credits). We have a Privacy Policy. Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats.
Eat your lima beans, Johnny.