Skip to content

Commit

Permalink
Lode Runner - Total Recall (v2.01a.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon_hung committed Jul 2, 2015
1 parent 8b86be6 commit 0108652
Show file tree
Hide file tree
Showing 156 changed files with 13,058 additions and 1,737 deletions.
75 changes: 63 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,86 @@
<a target="_blank" href="http://loderunnerwebgame.com/LodeRunner/">Lode Runner (超級運動員)</a>
<a target="_blank" href="http://loderunnerwebgame.com/LodeRunner/">Lode Runner - Total Recall</a>
=======================================
## (超級運動員 - 全面回憶)

This program build with Javascript + [CreateJS](http://www.createjs.com).

Game levels include <b>[Lode Runner (150 levels) & Championship Lode Runner (50 levels)](http://strategywiki.org/wiki/Lode_Runner/Walkthrough)</b>
### * 3 GAME Mode & 1 DEMO Mode
<table>
<tr>
<td><b>(1) Challenge Mode</b></td>
<td>Compete with other players.</td>
</tr>
<tr>
<td><b>(2) Training Mode</b></td>
<td>Player can select any levels</td>
</tr>
<tr>
<td><b>(3) Edit Mode</b></td>
<td>Player can create custom levels</td>
</tr>
<tr>
<td><b>(4) Demo Mode</b></td>
<td>Demo passed levels</td>
</tr>

</table>

### GAME Mode
###* Include 5 Game Versions
<table>
<tr>
<td><b>CLASSIC MODE</b></td>
<td>Same as APPLE-II play mode</td>
<td><b>(1) <a target="_blank" href="https://en.wikipedia.org/wiki/Lode_Runner">Classic Lode Runner</a></b></td>
<td>(150 Levels)</td>
<td>Difficulty: 3</td>
</tr>

<tr>
<td><b>TRAINING MODE</b></td>
<td>Player can select levels</td>
<td><b>(2) <a target="_blank" href="http://www.gb64.com/game.php?id=5906&d=42">Professional Lode Runner</a></b></td>
<td>(150 Levels)</td>
<td>Difficulty: 4</td>
</tr>

<tr>
<td><b>EDIT MODE</b></td>
<td>Player can create self-levels</td>
<td><b>(3) <a target="_blank" href="http://www.vizzed.com/play/revenge-of-lode-runner-appleii-online-apple-ii-6223-game">Revenge of Lode Runner</a></b></td>
<td>(17 Levels)</td>
<td>Difficulty: 4</td>
</tr>

<tr>
<td><b>DEMO MODE</b></td>
<td>Replay passed levels</td>
<td><b>(4) <a target="_blank" href="http://www.spoonbillsoftware.com.au/loderunner.htm">Lode Runner Fan Book</a></b></td>
<td>(66 Levels)</td>
<td>Difficulty: 5</td>
</tr>

<tr>
<td><b>(5) <a target="_blank" href="https://en.wikipedia.org/wiki/Championship_Lode_Runner">Championship Lode Runner</a></b></td>
<td>(51 Levels)</td>
<td>Difficulty: 5</td>
</tr>
</table>

### PLAY
### * Provide 2 Theme
<table>
<tr>
<td>(1)<img src="image/apple2.png">APPLE-II</td>
</tr>
<tr>
<td>(2)<img src="image/commodore64.png">Commodore 64</td>
</tr>
</table>

### * 2 Keyboard control mode

<table>
<tr>
<td>(1)<img src="image/repeatOn.png">Repeat Actions On: Like APPLE-II keyboard behavior</td>
</tr>
<tr>
<td>(2)<img src="image/repeatOff.png">Repeat Actions Off: Like NES keyboard behavior</td>
</tr>
</table>


### * PLAY
<a target="_blank" href="http://loderunnerwebgame.com/game/">http://loderunnerwebgame.com/game/</a>

------------------------------------
55 changes: 55 additions & 0 deletions flag32Id.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
var countryId = {
unknown: 0
, _African_Union: 1, _Arab_League: 2, _ASEAN: 3, _CARICOM: 4, _CIS: 5
, _Commonwealth: 6, _England: 7, _European_Union: 8, eu: 8, _Islamic_Conference: 9
, _Kosovo: 10, _NATO: 11, _Northern_Cyprus: 12, _Northern_Ireland: 13, _Olimpic_Movement: 14
, _OPEC: 15, _Red_Cross: 16, _Scotland: 17, _Somaliland: 18, _Tibet: 19
, _United_Nations: 20, _Wales: 21, ad: 22, ae: 23, af: 24
, ag: 25, ai: 26, al: 27, am: 28, ao: 29
, aq: 30, ar: 31, as: 32, at: 33, au: 34
, aw: 35, ax: 36, az: 37, ba: 38, bb: 39
, bd: 40, be: 41, bf: 42, bg: 43, bh: 44
, bi: 45, bj: 46, bm: 47, bn: 48, bo: 49
, br: 50, bs: 51, bt: 52, bw: 53, by: 54
, bz: 55, ca: 56, cd: 57, cf: 58, cg: 59
, ch: 60, ci: 61, ck: 62, cl: 63, cm: 64
, cn: 65, co: 66, cr: 67, cu: 68, cv: 69
, cy: 70, cz: 71, de: 72, dj: 73, dk: 74
, dm: 75, do: 76, dz: 77, ec: 78, ee: 79
, eg: 80, eh: 81, er: 82, es: 83, et: 84
, fi: 85, fj: 86, fm: 87, fo: 88, fr: 89
, bl: 89, cp: 89, mf: 89, yt: 89, ga: 90
, gb: 91, sh: 91, gd: 92, ge: 93, gg: 94
, gh: 95, gi: 96, gl: 97, gm: 98, gn: 99
, gp: 100, gq: 101, gr: 102, gt: 103, gu: 104
, gw: 105, gy: 106, hk: 107, hn: 108, hr: 109
, ht: 110, hu: 111, id: 112, mc: 112, ie: 113
, il: 114, im: 115, in: 116, iq: 117, ir: 118
, is: 119, it: 120, je: 121, jm: 122, jo: 123
, jp: 124, ke: 125, kg: 126, kh: 127, ki: 128
, km: 129, kn: 130, kp: 131, kr: 132, kw: 133
, ky: 134, kz: 135, la: 136, lb: 137, lc: 138
, li: 139, lk: 140, lr: 141, ls: 142, lt: 143
, lu: 144, lv: 145, ly: 146, ma: 147, md: 148
, me: 149, mg: 150, mh: 151, mk: 152, ml: 153
, mm: 154, mn: 155, mo: 156, mq: 157, mr: 158
, ms: 159, mt: 160, mu: 161, mv: 162, mw: 163
, mx: 164, my: 165, mz: 166, na: 167, nc: 168
, ne: 169, ng: 170, ni: 171, nl: 172, bq: 172
, no: 173, bv: 173, nq: 173, sj: 173, np: 174
, nr: 175, nz: 176, om: 177, pa: 178, pe: 179
, pf: 180, pg: 181, ph: 182, pk: 183, pl: 184
, pr: 185, ps: 186, pt: 187, pw: 188, py: 189
, qa: 190, re: 191, ro: 192, rs: 193, ru: 194
, rw: 195, sa: 196, sb: 197, sc: 198, sd: 199
, se: 200, sg: 201, si: 202, sk: 203, sl: 204
, sm: 205, sn: 206, so: 207, sr: 208, st: 209
, sv: 210, sy: 211, sz: 212, tc: 213, td: 214
, tg: 215, th: 216, tj: 217, tl: 218, tm: 219
, tn: 220, to: 221, tr: 222, tt: 223, tv: 224
, tw: 225, tz: 226, ua: 227, ug: 228, us: 229
, uy: 230, uz: 231, va: 232, vc: 233, ve: 234
, vg: 235, vi: 236, vn: 237, vu: 238, ws: 239
, ye: 240, za: 241, zm: 242, zw: 243, sx: 244
, cw: 245, ss: 246
};
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added image/Theme/APPLE2/hole.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added image/Theme/APPLE2/text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added image/Theme/C64/block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/brick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/gold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/ground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/guard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/guard1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/hladder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/hole.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/Theme/C64/ladder.png
Binary file added image/Theme/C64/over.png
Binary file added image/Theme/C64/rope.png
Binary file added image/Theme/C64/runner.png
Binary file added image/Theme/C64/runner1.png
Binary file added image/Theme/C64/text.png
Binary file added image/Theme/C64/trap.png
Binary file added image/apple2.png
Binary file added image/blank32.png
Binary file added image/closeBoxOn.png
Binary file added image/closeBoxOut.png
Binary file added image/commodore64.png
Binary file modified image/cover.png
Binary file added image/cover1.png
Binary file added image/crown.png
Binary file added image/demo.png
Binary file added image/flags32.png
Binary file modified image/help.png
Binary file added image/helpIcon.png
Binary file removed image/hole.png
Diff not rendered.
Binary file added image/infoIcon.png
Binary file added image/lodeRunner.gif
Binary file added image/lodeRunner2.png
Binary file added image/lodeRunner3.png
Binary file modified image/remake.png
Binary file added image/repeatOff.png
Binary file added image/repeatOn.png
Binary file added image/signet.png
Binary file added image/simon.png
Binary file added image/soundOff.png
Binary file added image/soundOn.png
Binary file removed image/text.png
Diff not rendered.
62 changes: 42 additions & 20 deletions lodeRunner.def.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var VERSION = "1.00c";
var AI_VERSION = 2;
var VERSION = "2.01a";
var AI_VERSION = 3;

var NO_OF_TILES_X = 28,
NO_OF_TILES_Y = 16;
Expand All @@ -18,6 +18,9 @@ var BASE_SCREEN_Y = (NO_OF_TILES_Y * BASE_TILE_Y + GROUND_TILE_Y + TEXT_TILE_Y);
var MIN_SCALE = 0.5,
MAX_SCALE = 2;

var MENU_ICON_X = 40, MENU_ICON_Y = 36, ICON_BORDER = 4;
var BASE_ICON_X = (MENU_ICON_X + ICON_BORDER * 2);

var KEYCODE_BKSPACE = 8, //backspace
KEYCODE_ENTER = 13,
KEYCODE_SPACE = 32,
Expand All @@ -43,7 +46,7 @@ var KEYCODE_BKSPACE = 8, //backspace
KEYCODE_L = 76, //move right
KEYCODE_I = 73, //move up
KEYCODE_K = 75, //move down

KEYCODE_PERIOD = 190, //'.'
KEYCODE_COMMA = 188, //','

Expand Down Expand Up @@ -73,15 +76,16 @@ var SCORE_COMPLETE_LEVEL = 1500, SCORE_COUNTER = 15;

var SCORE_VALUE_PER_POINT = 100; //for modern & edit mode

var PLAY_NONE = 0, PLAY_CLASSIC = 1, PLAY_MODERN = 2, PLAY_DEMO = 3, PLAY_EDIT = 4, PLAY_TEST = 5, PLAY_AUTO = 6;

var PLAY_NONE = 0, PLAY_CLASSIC = 1, PLAY_MODERN = 2, PLAY_DEMO = 3,
PLAY_EDIT = 4, PLAY_TEST = 5, PLAY_AUTO = 6, PLAY_DEMO_ONCE = 7;

var GAME_START = 0, GAME_RUNNING = 1,
GAME_FINISH = 2, GAME_FINISH_SCORE_COUNT= 3,
GAME_WAITING = 4, GAME_PAUSE = 5,
GAME_NEW_LEVEL = 6, GAME_RUNNER_DEAD = 7,
GAME_OVER_ANIMATION = 8, GAME_OVER = 9,
GAME_NEXT_LEVEL = 10, GAME_PREV_LEVEL = 11;
GAME_NEXT_LEVEL = 10, GAME_PREV_LEVEL = 11,
GAME_LOADING = 12, GAME_WIN = 13;

var ACT_UNKNOWN = -1, ACT_STOP = 0,
ACT_LEFT = 1, ACT_RIGHT = 2,
Expand Down Expand Up @@ -120,42 +124,60 @@ var REBORN_T = 0x10; //template: for reborn

var CLOSE_SCREEN_SPEED = 35; //20 ~ 80

var MAX_GUARD = 6; //maximum number of guards
var MAX_OLD_GUARD = 6; //maximum number of guards for AI Version 1 and 2
var MAX_NEW_GUARD = 5; //for AI Version >= 3

var RUNNER_LIFE = 5; //number of runner life
var RUNNER_MAX_LIFE = 100;

var MAX_TIME_COUNT = 999; //for moden mode
var TICK_COUNT_PER_TIME = 16;
var MAX_DEMO_WAIT_COUNT = 150 * TICK_COUNT_PER_TIME;
var MAX_DEMO_WAIT_COUNT = 200 * TICK_COUNT_PER_TIME;

var MAX_EDIT_LEVEL = 120;

var MAX_HISCORE_RECORD = 10, MAX_HISCORE_NAME_LENGTH = 10;
var MAX_HISCORE_RECORD = 10, MAX_HISCORE_NAME_LENGTH = 12;

//===========================
// Define value for playData
//===========================
var PLAY_DATA_USERDEF = 999;

//================================================
// Define themes string also as theme folder name
//================================================
var THEME_APPLE2 = "APPLE2";
var THEME_C64 = "C64";

//================================
// Below defined for LocalStorage
//================================

var STORAGE_LASTPLAY_MODE = "loderunner_lastplay";

var STORAGE_CLASSIC_INFO1 = "loderunner_classicInfo1";
var STORAGE_CLASSIC_INFO2 = "loderunner_classicInfo2";
var STORAGE_CLASSIC_INFO = "loderunner_classicInfo";

var STORAGE_MODERN_INFO1 = "loderunner_modernInfo1";
var STORAGE_MODERN_INFO2 = "loderunner_modernInfo2";
var STORAGE_MODERN_INFO = "loderunner_modernInfo";

var STORAGE_DEMO_INFO1 = "loderunner_demoInfo1";
var STORAGE_DEMO_INFO2 = "loderunner_demoInfo2";
var STORAGE_DEMO_INFO = "loderunner_demoInfo";

var STORAGE_FIRST_PLAY = "loderunner_firstRun";

var STORAGE_MODERN_SCORE_INFO1 = "loderunner_modernScore1";
var STORAGE_MODERN_SCORE_INFO2 = "loderunner_modernScore2";
var STORAGE_MODERN_SCORE_INFO = "loderunner_modernScore";

var STORAGE_USER_INFO = "loderunner_userInfo"; //user created
var STORAGE_USER_SCORE_INFO = "loderunner_userScore"; //user created


var STORAGE_EDIT_INFO = "loderunner_editInfo";

var STORAGE_USER_LEVEL = "loderunner_userLevel";
var STORAGE_TEST_LEVEL = "loderunner_testlevel";

var STORAGE_HISCORE_INFO1 = "loderunner_hiScore1";
var STORAGE_HISCORE_INFO2 = "loderunner_hiScore2";
var STORAGE_HISCORE_INFO = "loderunner_hiScore";

var STORAGE_PLAYER_NAME = "loderunner_player";
var STORAGE_UID = "loderunner_uid";

var STORAGE_THEME_MODE = "loderunner_theme";

var STORAGE_REPEAT_ACTION = "loderunner_actRepeat";
Loading

0 comments on commit 0108652

Please sign in to comment.