Added a new game

This commit is contained in:
Eliezer Croitoru 2024-11-08 23:16:24 +02:00
parent 835a1f9c89
commit f3cd9616f3
5 changed files with 174 additions and 1 deletions

60
crusader-no-remorse.html Executable file
View File

@ -0,0 +1,60 @@
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
html,
body,
#jsdos {
background: black;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
* {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-ms-touch-action: none;
-ms-content-zooming: none;
touch-action: none;
}
</style>
<script src="src/js-dos.js"></script>
<link href="src/js-dos.css" rel="stylesheet">
</head>
<body>
<div id="jsdos"></div>
<script>
let bundleUrl = "games/crusader-no-remorse.zip";
let clientId = null;
emulators.pathPrefix = "src/";
Dos(document.getElementById("jsdos"), {
hardware: window.hardware,
withNetworkingApi: false,
withExperimentalApi: true,
clientId: (userGesture) => {
if (!userGesture) {
return Promise.resolve(clientId);
}
clientId = {
namespace: "test",
id: "ngtech1ltd@gmail.com",
};
return Promise.resolve(clientId);
}
}).run(bundleUrl);
</script>
</body>
</html>

BIN
games/War_Craft_2.zip Normal file

Binary file not shown.

Binary file not shown.

View File

@ -3,6 +3,6 @@
GAME_NAME="War_Craft_2"
GAME_ROOT_PATH="../../tmp/wc2/"
ZIP_PATH="../../zip"
ZIP_PATH="../../games"
bash pack-jsbox-game.sh "${GAME_NAME}" "${GAME_ROOT_PATH}" "${ZIP_PATH}"

113
templates/dosbox.conf.wc2 Executable file
View File

@ -0,0 +1,113 @@
[sdl]
autolock=false
fullscreen=false
fulldouble=false
fullresolution=original
windowresolution=original
output=surface
sensitivity=100
waitonerror=true
priority=higher,normal
mapperfile=mapper-jsdos.map
usescancodes=true
vsync=false
[dosbox]
machine=svga_s3
language=
captures=capture
memsize=16
[cpu]
core=auto
cputype=auto
#cycles=auto
#cycleup=10
#cycledown=20
cycles=10000
cycleup=500
cycledown=20
[mixer]
nosound=false
rate=44100
blocksize=1024
prebuffer=20
[render]
frameskip=0
aspect=false
scaler=none
[midi]
mpu401=intelligent
mididevice=default
midiconfig=
[sblaster]
sbtype=sb16
sbbase=220
irq=7
dma=1
hdma=5
sbmixer=true
oplmode=auto
oplemu=default
oplrate=44100
[gus]
gus=false
gusrate=44100
gusbase=240
gusirq=5
gusdma=3
ultradir=C:\ULTRASND
[speaker]
pcspeaker=true
pcrate=44100
tandy=auto
tandyrate=44100
disney=true
[joystick]
joysticktype=auto
timed=true
autofire=false
swap34=false
buttonwrap=false
[serial]
serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled
[dos]
xms=true
ems=true
umb=true
keyboardlayout=auto
[ipx]
ipx=true
[autoexec]
echo off
mount c .
c:
type jsdos~1/readme.txt
echo on
RUNME.BAT