"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
1answer
23 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
0answers
43 views
Is there a JavaScript library, or any library, for cooperative pathfinding? [closed]
Searching on google I found these papers for pathfinding with multiple units:
Cooperative Pathfinding
Fast and Memory-Efficient Multi-Agent Pathfinding
Is there a javascript library, or any library, ...
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
2answers
69 views
Converting hexagon grid coordinate system
As I have been building on a RTS game based on hexagon grid built in javascript. I stumbled across a problem regarding the coordinate system. Have been trying to implement a A-star system to find ...
1
vote
1answer
65 views
Get MonoBehaviour components from Prefab
I need to assign the script values for the following Prefab in Unity 3.5
The structure is the following
Kinect_Prefab
-MonoBehaviour
·Script: Missing Mono Script
-MonoBehaviour
...
-2
votes
1answer
31 views
Getting started with Phaser/TypeScript [closed]
Looking for help getting started with the new TypeScript HTML5 game framework Phaser (https://github.com/photonstorm/phaser)?
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 ...
-1
votes
0answers
41 views
Unity game engine javascript pickle [closed]
I want to import my nearly-ready game scene from Blender to Unity. I have my own format to store my data from the game worlds.
I serialised it with Python's pickle module, because I couldn't find (I ...
-1
votes
0answers
50 views
I recently stumbled upon GameClosure, but I found out it doesn't have physics [closed]
GameClosure: http://www.gameclosure.com/
I really like the engine, the debugging, and the code style in general. However, it doesn't have a built-in physics engine. It says here: ...
-1
votes
1answer
72 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
vote
1answer
94 views
How can I place my Enchant.js game into a DIV in a fully-designed web site?
Following the Enchant.js tutorial I cannot find a way to define the place the game is rendered in the page. It either takes the maximum possible area or limits itself to the given size (using ...
4
votes
5answers
190 views
Implementing vector based movement in a 2d environment
Good evening.
I apologize if the title is a bit vague, I really could not come up with anything better.
I am currently reading a book called the nature of code and as a side project, I am working on ...
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
Collision detection issue on 2D game engine with isometric game graphics [duplicate]
Let me first show you an example of issue so you'll see the problem.
http://i.imgur.com/dTxJIN7.jpg
The player object has red colored collision borders. Since I'm using an 2D engine, his head ...
0
votes
2answers
78 views
Variable timeStep not working as intended
I've been working on a game in javascript/html5 (through typescript) using my own little library. This library uses a variable timestep since I plan on using it on mobile devices, and I was under the ...
3
votes
3answers
309 views
How can I deploy a JavaScript game into the iOS app store?
Unfortunately, I don't have a Mac, so I can't develop for iOS.
I understand that HTML5 apps run in the browser, but is there a way to make an HTML5 app (e.g. a JavaScript game) and get it deployed ...
-2
votes
0answers
47 views
Things to learn for a 3D Game for Mobile [closed]
next year i am embarking on making a 3D game for my third year project for university, and i came on here to find out what kind of things i will need to learn over summer to accomplish this goal.
The ...
2
votes
1answer
140 views
How would one create a “start button” on a website similar to some Korean games?
Some games have buttons that would actually let you click them and you'd log right into the game. How does the web browser get permission to do this without plugins? Perhaps the client registers a ...
-2
votes
1answer
79 views
Creating a simple 3D view of a galaxy [closed]
What would be the easiest and most maintainable way to create (or use an already existing technology) a sort of Google Maps in 3D for a galaxy? Its not the main focus of my game, but I would like it ...
-3
votes
1answer
33 views
accessing value [closed]
how do I access "url" using a javascript syntax?
"photos":[{"alt_sizes":[{"url": "img.png"}]}];
I tried accessing with dot notation and literal notation, as seen:
p.photos[1].alt_sizes[4].url;
...
7
votes
3answers
168 views
How to do branching dialogue in javascript
I'm making a very basic visual novel type of game in Javascript, I'm a beginner so I'm just doing this for fun and learning, and due to bad planning I have run into a bit of a problem when you get to ...
0
votes
0answers
30 views
Library for asynchronous client to client messaging [closed]
I am currently developing an online game where two players can play against each other (something like Who Wants to Be a Millionaire?). And I would like to implement an asynchronous service so those ...
-3
votes
1answer
78 views
How do I detect when one sprite is moving away from another? [closed]
I'm currently working with crafty.js. I need to know how to detect when one sprite is moving away from another sprite.
-1
votes
0answers
68 views
Intelligent collision detection with movement [closed]
i am new to this stack-exchange page and i need an hint how to implement correct "implementation of movement-/collision behaviour".
I never developed games before...and never with Javascript/HTML5. I ...
2
votes
2answers
78 views
Gameover scene transition [duplicate]
I created a gameover scene in a crafty.js project but it does not run.
Crafty.scene('gameover', function() {
Crafty.background("#ccc");
Crafty.audio.stop("bg");
});
var gameOver = ...
2
votes
1answer
59 views
Stop music in crafty.js
How do I stop a looping music file from playing in crafty.js? I want the music to stop playing once a gameover condition has been reached.
-1
votes
1answer
83 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 ...
2
votes
1answer
123 views
JavaScript - 2D Top-down Tile Collision Detection
I am developing a small Top-down Game (Much like the old Zelda Games) and I'm having an issue in terms of Collision detection (The actual theory itself rather than assigning Tiles as solid, etc.)
I ...
0
votes
1answer
81 views
How do I make an entity move once per second in crafty.js
I am trying to implement "Snake" using crafty.js but I can't seem to get the snake entity to move just once in a second. How do I do this?
2
votes
2answers
84 views
Animating a background 'pulse' with easing equation
I'm trying to find a suitable easing equation (or other method) to animate an object so that it 'pulses' (imagine a 'spike' on a music visualiser, or see the image I drew badly below)
'v' is the ...
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, ...
4
votes
1answer
225 views
Working principle of an RPG map
I am currently thinking of building a basic browser-based 2D(that would eventually become 2.5D) RPG. I have planned everything and I think that would be able to accomplish the current goals, but it ...
1
vote
1answer
99 views
Simple 3D particle gravity in javascript? [closed]
I'm trying to do some simple gravity handling in my 3D environment (I'm using three.js). I've got some code, but it doesn't work. I'm hoping it's just a silly bug somewhere. Note: This is a ...
3
votes
3answers
202 views
Javascript board game: looking for optimization
I posted this question on stackoverflow before but received no answers so I decided to post it here and see if someone could suggest me something.
I'm working on a html/javascript game for android. ...
6
votes
5answers
356 views
Good technological solutions to build an ascii map and moving characters in a browser (like dwarf fortress)?
I'd like to build a webapp for my game website that involves using text characters to represent animals and people, and have them move around on map squares with independent (server driven) AI.
So ...
5
votes
3answers
288 views
Can “dumbphones” play JavaScript games?
Are JavaScript games exclusive to modern smartphones, or are older phone models also able to play games written in JavaScript?
0
votes
2answers
132 views
Smoothing a shot power curve
I'm making a game with shot powers (user presses and holds and launches an object)
Distance from the cursor was working for testing but obviously a distance of 1 and 2 pixels is double. I scaled this ...
-1
votes
2answers
176 views
Moving a sprite towards an x and y coordinate
Given a sprite with an x and y coordinate, how would I move it toward another sprite with an x and y coordinate?
I've already made it face towards the other sprite, and I've made it move towards the ...
-1
votes
1answer
53 views
Isometric Error: decrement iteration removes tiles [closed]
I am new to isometric and game programming in general.
Just cannot figure out how to iterate the grid from behind. I want to do it so that the tiles overlap properly.
My grid starts at [0][0] which ...
0
votes
1answer
106 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
402 views
Simple javascript HTML5 canvas start menu
I'm currently looking for a simple and basic start screen for a game using javascript, so basically its the first function that is called and then press play which then goes into the game.
Looked ...
-1
votes
2answers
110 views
Compare Mouse X,Y with Grid X,Y to find the closest grid position [closed]
EDIT:
From two very good answers I have decided to use isometric projection instead of my silly grid of cordinates.
I am doing a game entirely in canvas, and I find it quite troublesome right now.
I ...
2
votes
1answer
112 views
Optimising out tiles outside of viewport
I am playing around with the HTML5 canvas and have begun implementing a tile engine.
However, it's currently very inefficient: I have a 100x100 2D array and my code loops through the whole thing ...
-4
votes
1answer
201 views
which best tools are available for game development using javascript and html5? [closed]
Can any one tell me Which is the best mobile game development tools are available in market for free learning.
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 ...
8
votes
3answers
243 views
Y and X - Am I doing it wrong?
I sometimes run into small issues when doing my JavaScript projects.
That is because most build in functions of JavaScript run X,Y if positions are needed. (In that order).
But when I build a 2D ...
1
vote
2answers
177 views
Dynamic Textures
I am pretty new to this 3D designing and animating, and as an indie developer I need to do everything on my own
I have created this simple box character And I want to texture it, have looked around ...
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 ...
2
votes
2answers
194 views
Are javascript MVC model implementations too slow for games?
I wanted to implement a game in javascript with an MVC design pattern, with each entity's state stored in a model.
So for example,
In an update loop we iterate over all models and apply the velocity ...
4
votes
2answers
136 views
Simulate forces on a connected chain
I'm building a 2D space game where the player uses a chain to grab on to nearby asteroids. The asteroids move along a specific path with a constant velocity.
The chain has a maximum length L and ...
