WARN! This version is absolute, please switch to js-dos 6.22

Xonix

Play in the classic game Xonix in browser.


Fullscreen

Details

  • Xonix was created in 1984
  • Creator Ilan Raab and Dani Katz
  • Category Action
  • Age rating +0
  • Platform PC

Xonix is very simple game but it is very intresting. You should take up as much space as you can. The high score record for this game is 76,421 points.

Source

Open plunk, codepen

 1 <!doctype html>
 2 <html lang="en-us">
 3   <head>
 4     <meta charset="utf-8">
 5     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 6     <title>js-dos api</title>
 7     <style type="text/css">
 8       .dosbox-container { width: 640px; height: 400px; }
 9       .dosbox-container > .dosbox-overlay { background: url(https://js-dos.com/cdn/xonix.png); }
10     </style>
11   </head>
12   <body>
13     <div id="dosbox"></div>
14     <br/>
15     <button onclick="dosbox.requestFullScreen();">Make fullscreen</button>
16     
17     <script type="text/javascript" src="https://js-dos.com/cdn/js-dos-api.js"></script>
18     <script type="text/javascript">
19       var dosbox = new Dosbox({
20         id: "dosbox",
21         onload: function (dosbox) {
22           dosbox.run("https://js-dos.com/cdn/xonix.zip", "./XONIX.EXE");
23         },
24         onrun: function (dosbox, app) {
25           console.log("App '" + app + "' is runned");
26         }
27       });
28     </script>
29   </body>
30 </html>