Author Topic: Asm.js, C/C++ in the browser  (Read 8393 times)

miki151

  • Rogueliker
  • ***
  • Posts: 264
  • Karma: +0/-0
    • View Profile
Asm.js, C/C++ in the browser
« on: September 30, 2013, 05:49:49 PM »
I think it's a pretty neat technology. It's basically a C/C++ to javascript compiler. So in theory you can port any C/C++ program to the browser. Supposedly the newest Firefox can run this code really fast, without much performance loss.
http://www.extremetech.com/gaming/154994-epic-mozilla-release-unreal-engine-3-html5-demo-to-the-public-and-its-awesome

It means that maybe we will soon be playing the old classics in the browser, on any device. Save files and high score automatically uploaded to a server.

I gave it a try, it's pretty straightforward. SDL is available in the toolchain, so best to use that.
KeeperRL, Dungeon Keeper in roguelike style:
http://keeperrl.com

guest509

  • Guest
Re: Asm.js, C/C++ in the browser
« Reply #1 on: October 01, 2013, 11:11:46 AM »
yay

TheCreator

  • Rogueliker
  • ***
  • Posts: 370
  • Karma: +0/-0
    • View Profile
    • Fame
    • Email
Re: Asm.js, C/C++ in the browser
« Reply #2 on: October 01, 2013, 11:30:04 AM »
So in theory you can port any C/C++ program to the browser.

I'd love to see my shitty code ruining the theory :).
Fame (Untitled) - my game. Everything is a roguelike.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Asm.js, C/C++ in the browser
« Reply #3 on: October 01, 2013, 12:46:31 PM »
I don't get what is the idea to run a game in browser. I never play browser games.

wire_hall_medic

  • Rogueliker
  • ***
  • Posts: 160
  • Karma: +0/-0
    • View Profile
Re: Asm.js, C/C++ in the browser
« Reply #4 on: October 01, 2013, 06:02:06 PM »
I don't get what is the idea to run a game in browser. I never play browser games.

I rarely do either.  However, there have been quite a few games I haven't played because I wasn't willing to download them.