I am in for the 4th time

Posted by
April 17th, 2015 7:45 pm

I will use the same framework as last time with one difference: I target web from the beginning on (and maybe only release a web build).

Here are the tools I will use:

  • Visual Studio 2013 with XNA 4.0 and C# (here is the base classes extracted from my previous LDs: http://goo.gl/oidg6k)
  • JSIL to target the web browser
  • Inkscape for graphics
  • bfxr for sound effects
  • some python script to randomly generate looping music (let’s hope I can find it again, don’t know the name or author, but it was posted on this blog on a previous contest)

I highly recommend JSIL if you are using XNA, because let’s be honest, most users can’t be bothered to download a game. In case anyone wonders what is involved in porting a XNA game to the web it is really straight forward (there is also a great https://github.com/sq/JSIL/wiki if you are stuck):

  1. Check out the repository and its submodules: git clone –recursive https://github.com/sq/JSIL.git
  2. Build JSIL with Visual Studio
  3. If you use audio you need an ogg encoder, download oggenc2.exe and place it into JSIL\Upstream\OggEnc
  4. Use the files from this gist: https://gist.github.com/mpistrich/47d17311ff5c2df4382b
  5. Copy the *.jsilconfig file in the same folder as your SLN and name it <YOUR SOLUTION NAME>.sln.jsilconfig
  6. Copy the buildJSIL.cmd in the same folder as your SLN and adapt the project names
  7. Copy index.html and index.css in the output folder specified in buildJSIL.cmd and replace the project specific names
  8. Copy the folder JSIL\Libraries in the output folder specified in buildJSIL.cmd

You can now run buildJSIL.cmd. It will compile your solution and generate JS files. If you want to test it, you can run a simple web server in the output directory (python -m http.server).

 

Tags: ,


Leave a Reply

You must be logged in to post a comment.

[cache: storing page]