"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
22 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
votes
1answer
65 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 ...
2
votes
1answer
581 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
57 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
27 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)?
1
vote
2answers
501 views
Efficient collision detection - tile based HTML5/Javascript game
I'm building a basic RPG game and I'm looking at collisions/pickups etc now.
It's tile based and I'm using HTML5 and Javascript.
I use a 2D array to create my tilemap.
I'm currently using a switch ...
0
votes
0answers
33 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
40 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
49 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: ...
0
votes
1answer
105 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 ...
3
votes
2answers
727 views
Experience embedding javascript
I'm looking into scripting languages to embed in my game.
I've always assumed Lua was the best choice, but I've read some recent news about embedding V8 as was considering using it instead.
My ...
22
votes
12answers
10k views
Isometric game engine in JavaScript/HTML5 [closed]
Is anybody aware of any stable-ish (ie out of alpha) isometric drawing engines for JavaScript/HTML5? I have done some Google searches and found a few, but they were mostly in alpha/invite-only ...
0
votes
1answer
98 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
vote
1answer
84 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
175 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
2answers
106 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 ...
0
votes
0answers
52 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
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 ...
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 ...
3
votes
3answers
254 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
44 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
138 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
77 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
32 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;
...
-1
votes
1answer
77 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 ...
7
votes
3answers
149 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 ...
-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.
0
votes
0answers
29 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 ...
-1
votes
0answers
66 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 = ...
0
votes
1answer
71 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
1answer
56 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.
14
votes
3answers
744 views
How do history generation algorithms work?
I heard of the game Dwarf Fortress, but only now one of the people I follow on Youtube made a commentary on it... I was more than surprised when I noticed how Dwarf Fortress actually generates a ...
2
votes
1answer
112 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 ...
2
votes
2answers
83 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
44 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
218 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
97 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
200 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. ...
2
votes
4answers
2k views
2D Collision in Canvas - Balls Overlapping When Velocity is High
I am doing a simple experiment in canvas using Javascript in which some balls will be thrown on the screen with some initial velocity and then they will bounce on colliding with each other or with the ...
6
votes
5answers
352 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
286 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?
7
votes
3answers
690 views
Are commercial javascript games sensible?
So I love javascript as a language and how it is able to be run anywhere. I'm gonna enumerate my concerns:
Does it make sense to make money from javascript? I mean, the second I publish my game ...
0
votes
2answers
131 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 ...
8
votes
4answers
2k views
How to implement mouselook in the browser?
I am currently creating a 3D first-person shooter game in the browser using WebGL. How would I implement mouselook/free look for such a game?
14
votes
6answers
4k views
Are there any alternative JS ports of Box2D?
I have been thinking about creating a top down 2D car game for HTML5. For my first game I wrote the physics and collisions my self but for this one I would like to use some ready made library.
I ...
-1
votes
2answers
167 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 ...
3
votes
1answer
375 views
Creating a frozen bubble clone [closed]
This photo illustrates the environment: http://i.imgur.com/V4wbp.png
I'll shoot the cannon, it'll bounce off the wall and it's SUPPOSED to stick to the bubble. It does at pretty much every other ...
-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 ...
8
votes
4answers
1k views
Staggered Isometric Map: Calculate map coordinates for point on screen
I know there are already a lot of resources about this, but I haven't found one that matches my coordinate system and I'm having massive trouble adjusting any of those solutions to my needs.
What I ...



