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).

!752

lib 1005011 // mochadoom

sS defaultCfg = [[
alwaysrun		true
chatmacro0		"No"
chatmacro1		"I'm ready to kick butt!"
chatmacro2		"I'm OK."
chatmacro3		"I'm not looking too good!"
chatmacro4		"Help!"
chatmacro5		"You suck!"
chatmacro6		"Next time, scumbag..."
chatmacro7		"Come here!"
chatmacro8		"I'll take care of it."
chatmacro9		"Yes"
detaillevel		0
fullscreen		true
joyb_fire		0
joyb_speed		2
joyb_strafe		1
joyb_use		3
key_down		115
key_fire		157
key_left		172
key_right		174
key_speed		182
key_strafe		184
key_strafeleft		97
key_straferight		100
key_up		119
key_use		32
mb_used		2
mouse_sensitivity		5
mouseb_fire		0
mouseb_forward		2
mouseb_strafe		1
music_volume		8
screenblocks		10
sfx_volume		8
show_messages		true
snd_channels		3
use_joystick		false
use_mouse		true
usegamma		0
]];

p {
  renameConsole("Mocha DOOM 2!");
  File iwad = loadLibrary("#1005020");
  File iwad2 = prepareProgramFile("doom2.wad");
  copyFile(iwad, iwad2);
  File iwad3 = new File(iwad2.getName());
  if (!iwad3.exists())
    fail("We are not in the right directory! " + f2s(iwad3.getAbsoluteFile().getParentFile()) + " (should be " + f2s(programDir()) + ")");
    
  File cfgFile = prepareProgramFile("default.cfg");
  if (!cfgFile.exists())
    saveTextFile(cfgFile, defaultCfg.trim());
    
  S[] argz = {"-iwad", f2s(iwad2)};
  printStructure(argz);
  i.Main.main(argz);
}

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: 541 / 839
Referenced in: [show references]