"JavaScript (sometimes abbreviated JS) is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles." From Wikipedia. ...
0
votes
2answers
110 views
Increasing speed of circle over time as linear with Box2d
Assume that there is a circle and it can be moved by using keyboard arrows.Is required that increasing speed over time like increasing car speed. For example; max speed is 25 and time to reach max ...
5
votes
1answer
645 views
Scrolling Box2D DebugDraw
I'm developing a game using Box2D (javascript implementation - Box2DWeb), and I would like to know how I can pan the debug draw. I know the usual answer is - don't use debug draw, it's just for ...
2
votes
1answer
588 views
How do I implement layers on a tile map?
I have a game where, based upon the visible tiles in the viewport, I need to retrieve data of items in the visible tiles. I am planning to use Javascript to AJAX request a batch based upon the visible ...
1
vote
1answer
52 views
animating roulette ball
I'm trying to achieve something like netent's roulette (which is a great product in my opinion). It's going to be implemented in html5.
I wonder which path should I take to have such a great ...
0
votes
1answer
27 views
Play .mp3 with Craftyjs
I want to play .mp3 sound files in a game I built with Crafty.js. Is this possible without converting the sound file?
0
votes
1answer
108 views
Specific Position in THREE.js
I want to ask, how to find out the terrain height at specific points in three.js as I searched a lot but nothing find suitable or working according to my situation.
Actually I want to move the car on ...
0
votes
1answer
100 views
Using ImpactJS: How to set a publicly available variable
I'm trying to get an entity (a bullet, a grenade, and an explosive) from my player player. Specifically, I want the shootingRate of my bullet (how frequently it can be fired).
How can I do this ...
-1
votes
1answer
74 views
Tips on building a real time multi player web platform + framework and/or tookit
I'm trying to develop a multi player game web app which basically should be able to achieve the following goals:
Provide a game engine + framework/toolkit to let third party corporation integrate ...
-1
votes
1answer
86 views
View port for my canvas game
I am developing a canvas game, and im struggling to get my head around how i can make a view port so when the character moves the world moves with it.
Unlike traditional 2d maps built with arrays i ...
-1
votes
1answer
489 views
Framework to build scrollable map with item selection in JavaScript?
I need a mobile device to be able to scroll a large, static map image, and also be able to select PNG image "objects", like this:
What would be the simplest method? HTML5, jQuery, Sencha Touch, or ...
2
votes
0answers
459 views
HTML5/JS - Choppy Game Loop
I have been experimenting with HTML5/JS, trying to create a simple game when I hit a wall. My choice of game loop is too choppy to be actually of any use in a game.
I'm trying for a fixed time step ...
1
vote
0answers
45 views
Is there an out-of-the-box way to create a custom non-convex polygon in three.js?
Does Three.js offer an out-of-the-box way to create custom non-convex polygon, or do I have to use THREE.Geometry and set faces manually? I'm guessing that ShapeGeometry has something to do with this, ...
1
vote
0answers
276 views
shader-based particle systems
I have a classic particle system where each particle is represented by a quad and, each time step, I move each particle.
My target is webGL which means I don't have instancing, attribute divisors nor ...
1
vote
0answers
56 views
How to work with edge Texture
Im not sure if i use the right terms, but im not able to find something to start with.
Im trying to develop a little HTML5 game. I have a ground with a texture and now I want to make a surrounding ...
1
vote
0answers
225 views
Open Source HTML/JS game(s) with license that would allow embedding in my app?
I'm working on an educational app for kids. At the end of the sign-up process, the kids must wait for a confirmation from their parents in order to gain access to the app.
While they wait for this to ...
1
vote
0answers
123 views
How do I keep user input and rendering independent of the implementation environment?
I'm writing a Tetris clone in JavaScript. I have a fair amount of experience in programming in general, but am rather new to game development.
I want to separate the core game code from the code that ...
1
vote
0answers
476 views
How to turn a 3d camera (in HTML5 2D Canvas)
A few years back I started experimenting with 3d in canvas. Everything went pretty well untill I had to to turn the camera, I couldn't get it done.
A few days back I just happened to stumble upon ...
1
vote
0answers
355 views
Stuck with A* implementation
I have implemented some A* code in C# using this JavaScript code.
My C# implementation is the same as the above javascript code. But I'm unable to get it to work properly, e.g pathfinder blocks ...
0
votes
0answers
40 views
JavaScript “Floats”, or ThreeJS wrong positioning?
I want to learn how to use Vectors with 3D.
Here is a strange Error I have encountered today.
Instead of stopping exactly on the other Cube, I get this:
When I change the IF to (cube.position.y ...
0
votes
0answers
56 views
How to integrate Javascript into C# and run scriptcode step by step
We are currently working on a Pokemon MMO trying to figure out how to implement an asynchronous scripting language the best. We don't want to work with threads or tasks, but the goal was to wait for ...
0
votes
0answers
50 views
How to dump the dom in Qt Script?
Good afternoon,
I’ve connected the Qt (4.8) script engine up within my application.
I’m still learning how to make my application accessible from scripts.
I’d like to debug it by enumerating ...
0
votes
0answers
195 views
Am I doing this node.js game loop wrong?
I have 2 arrays of JSON objects, actions and game objects.
At any time a user can make a request from the client which can add an action to the actions array.
I have a setInterval(function(){ }, ...
0
votes
0answers
138 views
Swept sphere to line segment intersection in 2D
How can you determine when a moving sphere intersects a line segment, and the normal of that intersection?
Ideally Javascript, but anything that's tidy, simple and self-contained and easy to port to ...