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

59
LINES

< > BotCompany Repo | #1005289 // Mocha DOOM with custom WAD, e.g. registered version [supply as command arg]

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

Uses 1218K of libraries. Click here for Pure Java version (1323L/10K/32K).

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!");
50  
  File iwad = new File(args[0]);
51  
52  
  File cfgFile = new File("default.cfg");
53  
  if (!cfgFile.exists())
54  
    saveTextFile(cfgFile, defaultCfg.trim());
55  
    
56  
  S[] argz = {"-iwad", f2s(iwad)};
57  
  printStructure(argz);
58  
  i.Main.main(argz);
59  
}

Author comment

Began life as a copy of #1005012

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005289
Snippet name: Mocha DOOM with custom WAD, e.g. registered version [supply as command arg]
Eternal ID of this version: #1005289/1
Text MD5: d52b36e9d9d15324b0db1be0e9157382
Transpilation MD5: 0011c7143defdaa73c2a36f17dd1779f
Author: stefan
Category: javax / games
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-30 01:23:31
Source code size: 1126 bytes / 59 lines
Pitched / IR pitched: No / No
Views / Downloads: 502 / 559
Referenced in: [show references]