Uses 1218K of libraries. Click here for Pure Java version (5342L/38K/122K).
1 | !7 |
2 | |
3 | lib 1005011 // mochadoom |
4 | |
5 | sS defaultCfg = [[ |
6 | alwaysrun true |
7 | chatmacro0 "No" |
8 | chatmacro1 "I'm ready to kick butt!" |
9 | chatmacro2 "I'm OK." |
10 | chatmacro3 "I'm not looking too good!" |
11 | chatmacro4 "Help!" |
12 | chatmacro5 "You suck!" |
13 | chatmacro6 "Next time, scumbag..." |
14 | chatmacro7 "Come here!" |
15 | chatmacro8 "I'll take care of it." |
16 | chatmacro9 "Yes" |
17 | detaillevel 0 |
18 | fullscreen true |
19 | joyb_fire 0 |
20 | joyb_speed 2 |
21 | joyb_strafe 1 |
22 | joyb_use 3 |
23 | key_down 115 |
24 | key_fire 157 |
25 | key_left 172 |
26 | key_right 174 |
27 | key_speed 182 |
28 | key_strafe 184 |
29 | key_strafeleft 97 |
30 | key_straferight 100 |
31 | key_up 119 |
32 | key_use 32 |
33 | mb_used 2 |
34 | mouse_sensitivity 5 |
35 | mouseb_fire 0 |
36 | mouseb_forward 2 |
37 | mouseb_strafe 1 |
38 | music_volume 8 |
39 | screenblocks 10 |
40 | sfx_volume 8 |
41 | show_messages true |
42 | snd_channels 3 |
43 | use_joystick false |
44 | use_mouse true |
45 | usegamma 0 |
46 | ]]; |
47 | |
48 | p { |
49 | renameConsole("Mocha DOOM!"); |
50 | File iwad = loadLibrary("#1005008"); |
51 | File iwad2 = prepareProgramFile("doom1.wad"); |
52 | copyFile(iwad, iwad2); |
53 | File iwad3 = new File(iwad2.getName()); |
54 | if (!iwad3.exists()) |
55 | fail("We are not in the right directory! " + f2s(iwad3.getAbsoluteFile().getParentFile()) + " (should be " + f2s(programDir()) + ")"); |
56 | |
57 | File cfgFile = prepareProgramFile("default.cfg"); |
58 | if (!cfgFile.exists()) |
59 | saveTextFile(cfgFile, defaultCfg.trim()); |
60 | |
61 | S[] argz = {"-iwad", f2s(iwad2)}; |
62 | printStructure(argz); |
63 | i.Main.main(argz); |
64 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, etmzoiygucik, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005012 |
Snippet name: | Mocha DOOM [older working version. this is step 2, run #1005013 instead] |
Eternal ID of this version: | #1005012/4 |
Text MD5: | 6fd2194d069e975752a94531a2bcb850 |
Transpilation MD5: | c9cab4aa52b8f09d7497b2b8e8e9d3d4 |
Author: | stefan |
Category: | javax / games |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-09 12:41:24 |
Source code size: | 1493 bytes / 64 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 679 / 1201 |
Version history: | 3 change(s) |
Referenced in: | [show references] |