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 "A_CarrFIXday.j2t"
#pragma require "JC2lvl49-MLLE-Data-1.j2l"
#pragma require "JazzCity2_Boat.j2t"
#pragma require "JC2lvl49.j2l"
/*************************************************
Created by Parrot86 - RabbitCity 2: The Secret Room Remastered
*************************************************/
void onLevelLoad() {
jjAlert("||Level Name: |The Boat 3 / 3");
jjAlert("||RabbitCity 2: The Secret Room Remastered - Level: |4 9");
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(2, true);
else if(myArea == 3) p.warpToID(4, true);
else if(myArea == 4) p.warpToID(3, 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, 287, 185, 287, 185)) myArea = 3;
else if(inArea(p, 447, 243, 447, 243)) myArea = 4;
else myArea = 0;
}
bool onDrawHealth(jjPLAYER@ player, jjCANVAS@ canvas) {
if(myArea == 1 || myArea == 3 || myArea == 4) {
canvas.drawString(220, 370, "Press UP to walk through!", STRING::MEDIUM, STRING::BOUNCE, 1);
}
return false;
}
void onFunction0() { if (p.timerState != TIMER::STARTED) p.timerStart(150*70, false); }
void onFunction1() { p.timerStop(); }
void onPlayerTimerEnd() {
p.kill();
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|YOUR BOAT WAS DESTROYED !");
jjAlert("");
jjAlert("Player:||||| AAAARRGGHHH!");
}
void onFunction2() {
p.kill();
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|You can't swim in water");
jjAlert("");
jjAlert("Player:||||| AAAARRGGHHH!");
}
void onFunction3() {
p.showText("@@@@@@@@#YOU FOUND A SECRET AREA!", STRING::MEDIUM);
}
void onFunction4() {
p.cameraFreeze(319*32, 244*32, true, true);
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| Well done, robot was destroyed!");
}
void onFunction5() {
p.cameraFreeze(253*32, 244*32, true, true);
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Fluffy:||||| the door are opened");
jjAlert("Fluffy:||||| Thank you for defending me!");
jjAlert("Player:||||| No problem!");
jjAlert("Fluffy:||||| OK, follow me");
}
void onFunction6() {
p.cameraFreeze(390*32, 184*32, true, true);
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Gizmo:||||| Thank for defending me!");
jjAlert("Player:||||| No problem");
jjAlert("Fluffy:||||| I'm going to fix on a boat");
jjAlert("Gizmo:||||| OK");
}
void onFunction7() {
p.cameraUnfreeze();
}
void onFunction8() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| What are you doing?");
jjAlert("Fluffy:||||| I'm going to fix this");
}
void onFunction9() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Oliver:||||| *Burp*");
jjAlert("Player:||||| Uh");
}
void onFunction10() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Hershey:||||| Hi");
jjAlert("Player:||||| Hi");
}
void onFunction11() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("|*** IT'S LOCKED ***");
jjAlert("");
jjAlert("");
}
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.