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 "JazzCity2.j2t"
#pragma require "JC2lvl92-MLLE-Data-1.j2l"
#pragma require "JazzCity2_Airship.j2t"
#pragma require "JC2lvl92.j2l"
/*************************************************
Created by Parrot86 - RabbitCity 2: The Secret Room Remastered
*************************************************/
void onLevelLoad() {
jjAlert("||Level Name: |RabbitVille");
jjAlert("||RabbitCity 2: The Secret Room - Level: |9 2");
jjAlert("");
jjAlert("");
jjTexturedBGFadePositionY = 0.85;
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(1, true);
else if(myArea == 2) p.warpToID(2, true);
else if(myArea == 3) p.warpToID(4, true);
else if(myArea == 4) p.warpToID(3, true);
else if(myArea == 5) p.warpToID(6, true);
else if(myArea == 6) p.warpToID(5, true);
else if(myArea == 7) p.warpToID(8, true);
else if(myArea == 8) p.warpToID(7, true);
else if(myArea == 9) p.warpToID(10, true);
else if(myArea == 10) p.warpToID(9, true);
else if(myArea == 11) p.warpToID(12, true);
else if(myArea == 12) p.warpToID(11, true);
else if(myArea == 13) p.warpToID(14, 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, 163, 25, 163, 25)) myArea = 1;
else if(inArea(p, 289, 25, 289, 25)) myArea = 2;
else if(inArea(p, 156, 25, 156, 25)) myArea = 3;
else if(inArea(p, 691, 25, 691, 25)) myArea = 4;
else if(inArea(p, 587, 25, 587, 25)) myArea = 5;
else if(inArea(p, 769, 53, 769, 53)) myArea = 6;
else if(inArea(p, 788, 62, 788, 62)) myArea = 7;
else if(inArea(p, 599, 50, 599, 50)) myArea = 8;
else if(inArea(p, 511, 50, 511, 50)) myArea = 9;
else if(inArea(p, 422, 64, 422, 64)) myArea = 10;
else if(inArea(p, 443, 55, 443, 55)) myArea = 11;
else if(inArea(p, 496, 25, 496, 25)) myArea = 12;
else if(inArea(p, 391, 25, 391, 25)) myArea = 13;
else myArea = 0;
}
bool onDrawHealth(jjPLAYER@ player, jjCANVAS@ canvas) {
if(myArea == 1 || myArea == 2 || myArea == 3 || myArea == 4 || myArea == 5 || myArea == 6 || myArea == 7 || myArea == 8 || myArea == 9 || myArea == 10 || myArea == 11 || myArea == 12 || myArea == 13) {
canvas.drawString(220, 370, "Press UP to walk through!", STRING::MEDIUM, STRING::BOUNCE, 1);
}
return false;
}
void onFunction0() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|||*** CAUTION! Area Under Construction - Do Not Enter ***");
jjAlert("");
jjAlert("");
jjAlert("");
}
void onFunction1() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** IT'S LOCKED ***");
jjAlert("");
jjAlert("You can't enter. Go back to RabbitCity Episode 4");
}
void onFunction2() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** IT'S LOCKED - SILVER KEY REQIRED ***");
jjAlert("");
jjAlert("Player:||||| What ? ! It's my own room !");
}
void onFunction3() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Message Sign: This Player's room are dead");
jjAlert("");
jjAlert("Player:||||| What ! ? I didn't died !");
}
void onFunction4() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| MOM ! DAD! Where are you ???");
}
void onFunction5() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("???:||||| Pffff... sigh");
}
void onFunction6() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("???:||||| Uaahhhh !!");
}
void onFunction7() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| Uh ! I am already dead ? !");
}
void onDrawLayer4(jjPLAYER@ p, jjCANVAS@ canvas) {
canvas.drawString(214*32, 25*32-16, "|Jazz",STRING::MEDIUM);
canvas.drawString(160*32, 22*32-16, "|House of Jazz",STRING::MEDIUM);
canvas.drawString(121*32, 21*32-16, "|B|A|R",STRING::MEDIUM);
canvas.drawString(389*32, 20*32-17, "||||CHURCH XVII",STRING::MEDIUM);
}
void onDrawLayer3(jjPLAYER@ p, jjCANVAS@ canvas) {
canvas.drawString(214*32, 23*32-22, "||Spaz",STRING::MEDIUM);
canvas.drawString(220*32, 23*32-17, "||||Lori",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.