Popular Content

Showing content with the highest reputation on 04/20/16 in all areas

  1. 3 points

    Create Something like Room Sketcher

    Its definitely possible. I'm working on a framework for applications like this at the moment. What i have so far (only BabylonJs related things): - support for multiple views - custom camera control for better multiple view and orthographic camera support - move and rotate operations which work in all views (2D, 3D, orthographic, perspective ...) - everything works on desktop and mobile/touch devices In my case i don't need to sync 2D and 3D because everything is done in 3D anyway. attached a screenshot of my debug application (everything still in very early stage, thats why the UI is ugly )
  2. 2 points

    Nost-Kartrah : Strategy game

    Tour d'horizon Here in link the movie
  3. 1 point

    Babylon.js augmented reality?

    Looks like Apple will be finally adding webRTC to its browsers. http://www.zdnet.com/article/apple-quietly-slips-webrtc-audio-video-into-safaris-webkit-spec/ This means we could combine Babylon.js with a marker tracker, or natural-features tracker to make some neat augmented reality websites
  4. 1 point
    Use Phaser 2.4.7 (RC1 at the moment, but will be released on Friday of this week)
  5. 1 point

    Catch coin and increment variable

    I believe you need to use moda.sprite.destroy(); That should get rid of both the sprite and it's P2 body. Otherwise, if you want to reuse the sprite later by reviving it, you could also wrap the code in an if(moda.sprite.alive) check.
  6. 1 point


    My game called NeoTrap is finished. I still have some ideas of improving it but I have finals and other school stuff so unfortunately there won't be enough time. Check it out: http://omarhuseynov011.github.io/NeoTrap/ I have submitted my game to ludum dare: http://ludumdare.com/compo/ludum-dare-35/?action=preview&uid=92927 Gamejolt link: http://gamejolt.com/games/neotrap/141779 Itch.io link: https://omarhuseynov011.itch.io/neotrap Newgrounds: http://www.newgrounds.com/portal/view/673459
  7. 1 point

    es2015 game referencing between classes

    What's calling addBarrier? EDIT: My guess is that the thing that is calling addBarrier is losing its context, so the value of "this" isn't what you think it is. I bet it's the window. The window doesn't have a game, so neither does your sprite.
  8. 1 point
    You do this: MonsterBunny = function (game, x, y) { Phaser.Sprite.call(this, game, x, y); }; Was this not working?
  9. 1 point

    Creating a scanning laser effect

    You Right in all you words This is a new Tools and we (thanks a lot @wing ) close to Commit Beta version with documantation you can see from here before commit : https://github.com/RNasimiAsl/Extensions/blob/master/ShaderBuilder/Documentation%20Temp.md var matTemp = function (noise) { return new BABYLONX .ShaderBuilder() .SetUniform('co1','vec3') .InLine('vec4 a = vec4(vec3(1.), min(1., pow(0.95/(abs(pos.y)+abs(vuv.x)*0.95) , 31.) ));') // Def Result like Red Color .InLine('result = vec4( min(1.,max(0.,a.w)) ,pow( vuv.x/a.w,0.91 ) ,0.,1. );') // Def Result like Red Color .Reference(1) .Solid({ a: 0.0 }) .Yellow(1, 'result = vec4(vec3(1.),1.);', { rangeStep: -0.48, rangePower: -0.6 }) .InLine('result.xyz = co1;') .InLine(noise ? 'float nois = abs(noise(pos+vec3(time*0.01)))*0.3;':'float nois = 0.;') .InLine('result.w = pow(result.w,3.)*8. -nois ;') .Transparency() .Back(); } mesh.material = matTemp(false/*enable noise*/).BuildMaterial(scene); you can change your wanted color (dynamicly ) with this "mesh.material.setVector3('co1', { x: 1/*red*/, y: 1/green*/, z: 1./*blue*/ }); " your first question can be solve with more matematical stuff so look is very complicated but i explain it for you maybe help 1. i make a plan and change a PivotMatrix for correct rotation ( you can scale that for find your wanted size) 2. i write ' vec4 a = vec4(vec3(1.), min(1., pow(0.95/(abs(pos.y)+abs(vuv.x)*0.95) , 31.) )); ' for make laser shape on this face http://www.babylonjs-playground.com/#1TYWYB#9 3. i reference this color map and clear all with vec4(0.,0.,0.,0.) 4. use Yellow reference for draw what i need solid shader link : http://babylonjs.com/cyos/#W2IOW
  10. 1 point
    @davrous there is such great stuff in this playground example.
  11. 1 point

    Implemenation of Zoom All

    Hi, this could be useful to you: http://stackoverflow.com/questions/14614252/how-to-fit-camera-to-object Also, I don't know which type of camera you're using, but there's a zoomOn function and a zoomOnFactor parameter for the ArcRotateCamera. I think it is related to the distance from camera to the object and not to the canvas size, but you may want to take a look at it anyway.
  12. 1 point
    Demens Deum

    Demon's Cave

    Demon’s Cave – a game in which you need to fly to a cave and dodge the rocks, collecting coins! Virgil – a brave demon hunter, his plane and enthusiastic attempts to catch the legendary demon planet Sirius 9. This is my second game in gamedev world, and first one for HTML5. Hope you will like it, and give me feedback) Demon's Cave Game
  13. 1 point


    One of the best browser games I've played this year, this is insanely fun. I love moving towards the right and spamming the jump key while the epic chorus is playing in the background, I feel like such a bad ass haha (the music you chose fits the game perfectly) Are we supposed to beable to jump over the cones? Edit: just got a score of 32k (not sure if this good haha)
  14. 1 point

    What makes a true HTML 5 game?

    This is only going to get more and more confusing. Pretty sure I've read somewhere that JS is currently the worlds most compiled-to language, presumably this is to get stuff running in a browser. Browser games might be more appropriate for apps that run in browsers, which would then negate the discussion over how they were created. HTML5 covers the technology, and can be stuffed into any device/application capable of understanding it, stuff like node-webkit and Electron are not browsers, they just share tech with browsers, so calling apps Browser games instead of HTML5 games is still misleading. No-one calls (or cares) native applications binary applications or C applications or whatever, they are just games and applications.
  15. 1 point

    What makes a true HTML 5 game?

    "true html5 game" means it runs on every browser on every architecture, desktop or mobile, without the help of any proprietary plugin. but this is just my opinion, man.
  16. 1 point

    What makes a true HTML 5 game?

    Highly subjective of course, but in my opinion a "true HTML5 game" (or "browser game" as I prefer) should primarily: Create fun interplays across the web. i.e. it is not a technology or tooling question, but a user experience question. So YES, GameMaker, Unity and friends can make a true HTML5 game, but that's not to say they always do.
  17. 1 point

    Move a sprite along a path

    This worked for me var moveSprite = this.game.add.sprite(startX, startY, 'spritekey');var tween = game.add.tween(moveSprite).to({x: [startX, firstBezierPointX, secondBezierPointX, endX],y: [startY, firstBezierPointy, secondBezierPointY, endY],}, 1000,Phaser.Easing.Quadratic.Out, true).interpolation(function(v, k){ return Phaser.Math.bezierInterpolation(v, k);});