Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
RabbitCity Remastered | P4rr0t | Single player | 7.5 |
#include "MLLE-Include-1.4.asc"
const bool MLLESetupSuccessful = MLLE::Setup();
#pragma require "RClvl13.j2l"
#pragma require "RClvl13-MLLE-Data-1.j2l"
#pragma require "JazzCity2_Airship.j2t"
/*************************************************
Created by Parrot86 - RabbitCity: Remastered
*************************************************/
void onLevelLoad() {
jjAlert("||Level Name: |Elevator - Port");
jjAlert("||RabbitCity : Remastered - Level: |1 3");
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);
}
}
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, 68, 16, 68, 16)) myArea = 1;
else myArea = 0;
}
bool onDrawHealth(jjPLAYER@ player, jjCANVAS@ canvas) {
if(myArea == 1) {
canvas.drawString(120, 320, "Press UP to go through the elevator!", STRING::MEDIUM, STRING::BOUNCE, 1);
}
return false;
}
void onFunction0() {
p.showText("@@@@@@@@#YOU FOUND A SECRET AREA!", STRING::MEDIUM);
}
void onFunction1() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("YellowRabbit:||||| Aaaaahhhhh, GET OUT!");
jjAlert("Player:||||| Oopps!");
}
void onFunction2() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Player:||||| What is that ?");
jjAlert("Pink Rabbit:||||| It's submarine");
jjAlert("Player:||||| Cool");
}
void onFunction3() {
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("");
jjAlert("Capital Rabbit:||||| Hey Player, go to enter the ship");
jjAlert("Player:||||| OK");
}
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.