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

62
LINES

< > BotCompany Repo | #1005017 // Mocha Doom Single Source (still a step 2)

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

Libraryless. Click here for Pure Java version (1465L/11K/35K).

1  
!752
2  
3  
sS defaultCfg = [[
4  
alwaysrun		true
5  
chatmacro0		"No"
6  
chatmacro1		"I'm ready to kick butt!"
7  
chatmacro2		"I'm OK."
8  
chatmacro3		"I'm not looking too good!"
9  
chatmacro4		"Help!"
10  
chatmacro5		"You suck!"
11  
chatmacro6		"Next time, scumbag..."
12  
chatmacro7		"Come here!"
13  
chatmacro8		"I'll take care of it."
14  
chatmacro9		"Yes"
15  
detaillevel		0
16  
fullscreen		true
17  
joyb_fire		0
18  
joyb_speed		2
19  
joyb_strafe		1
20  
joyb_use		3
21  
key_down		115
22  
key_fire		157
23  
key_left		172
24  
key_right		174
25  
key_speed		182
26  
key_strafe		184
27  
key_strafeleft		97
28  
key_straferight		100
29  
key_up		119
30  
key_use		32
31  
mb_used		2
32  
mouse_sensitivity		5
33  
mouseb_fire		0
34  
mouseb_forward		2
35  
mouseb_strafe		1
36  
music_volume		8
37  
screenblocks		10
38  
sfx_volume		8
39  
show_messages		true
40  
snd_channels		3
41  
use_joystick		false
42  
use_mouse		true
43  
usegamma		0
44  
]];
45  
46  
p {
47  
  renameConsole("Mocha DOOM!");
48  
  File iwad = loadLibrary("#1005008");
49  
  File iwad2 = prepareProgramFile("doom1.wad");
50  
  copyFile(iwad, iwad2);
51  
  File iwad3 = new File(iwad2.getName());
52  
  if (!iwad3.exists())
53  
    fail("We are not in the right directory! " + f2s(iwad3.getAbsoluteFile().getParentFile()) + " (should be " + f2s(programDir()) + ")");
54  
    
55  
  File cfgFile = prepareProgramFile("default.cfg");
56  
  if (!cfgFile.exists())
57  
    saveTextFile(cfgFile, defaultCfg.trim());
58  
    
59  
  S[] argz = {"-iwad", f2s(iwad2)};
60  
  printStructure(argz);
61  
  callMain(_getClass("i.Main"), argz);
62  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005017
Snippet name: Mocha Doom Single Source (still a step 2)
Eternal ID of this version: #1005017/1
Text MD5: d79adfdaaa2647fe6a8d5393f465309e
Transpilation MD5: 6c24c57475b70c55e500612880e5b8e8
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 22:18:40
Source code size: 1421 bytes / 62 lines
Pitched / IR pitched: No / No
Views / Downloads: 608 / 658
Referenced in: [show references]