Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

64
LINES

< > BotCompany Repo | #1005021 // Mocha DOOM 2 [this is step 2, run #1005022 instead]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 1218K of libraries. Click here for Pure Java version (1423L/11K/34K).

1  
!752
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 2!");
50  
  File iwad = loadLibrary("#1005020");
51  
  File iwad2 = prepareProgramFile("doom2.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  
}

Author comment

Began life as a copy of #1005012

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, qjimsvlqbazf, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wglhsqxgxbdq

No comments. add comment

Snippet ID: #1005021
Snippet name: Mocha DOOM 2 [this is step 2, run #1005022 instead]
Eternal ID of this version: #1005021/1
Text MD5: ca31ffadc50c4cc35a3f43370b8ca5be
Transpilation MD5: 18a228f38a9f4b5bea187c0481d74ade
Author: stefan
Category: javax / games
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-28 02:13:50
Source code size: 1431 bytes / 64 lines
Pitched / IR pitched: No / No
Views / Downloads: 543 / 841
Referenced in: [show references]