Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

This web player is for UDK and works very well without a browser plugin. I'm wondering how it's built.

How can I build my own?

My game engine is written in C++ language.

share|improve this question
    
The web player you linked seems to be in Adobe Flash, but it should be possible to replicate with JavaScript, WebGL and WebAudio. This question is very broad. Is there a specific concept you're stuck with? –  Anko Dec 17 '13 at 12:47
    
No it seems that it uses HTML5 see the page source –  kochol Dec 17 '13 at 13:14
    
Are you sure? I may be wrong, but when I visit the page with a browser that doesn't support Flash, the game doesn't load, but informs me that I need Flash Player. –  Anko Dec 17 '13 at 13:28

2 Answers 2

up vote 5 down vote accepted

Emscripten can be used to port C++ applications to javascript. It was able to succesfully make the Unreal 3 engine run in a web browser.

It works best in browsers which support asm.js, an optimization-friendly subset of the Javascript language which can reach performance comparable to native code.

share|improve this answer

pepper.js allows you to write C++ code and then deploy directly as:

  • Machine code via PNaCl for higher performance, currently only supported by Chrome.
  • Javascript via Emscripten for maximum reach.

From the project page:

pepper.js is a JavaScript library that enables the compilation of native Pepper applications into JavaScript using Emscripten. This allows the simultaneous deployment of native code on the web both as a Portable Native Client (PNaCl) executable and as JavaScript. Native Pepper applications can now be run in Chrome, Firefox, Internet Explorer, Safari, and more.

Disclosure: I work on the Chrome team.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.