Questions tagged [jquery]

jQuery is a cross-browser JavaScript library that facilitates DOM traversal, event handling, animation and AJAX interactions.

Filter by
Sorted by
Tagged with
0
votes
2answers
75 views

How do you setup a scrollable overworld map on an HTML/JQuery based game?

Problem and Requirements I'm putting together a simple game that will involve an overworld map consisting of 12px x 12px square terrain tiles. These maps may be as large as 500x500 in size (so 250k ...
-1
votes
1answer
243 views

How do I create a horizontal tech tree for the web? [closed]

I'm currently using bootstrap, jQuery and KnockoutJS to create a simple game. I would like to make a horizontal tech/research tree where the player can do research to get bonuses. I found a CSS ...
1
vote
1answer
913 views

How do I make my character jump on a platform?

This is the code I've written so far: Html: ...
0
votes
1answer
537 views

How to draw and give functions to multiple things at once?

I'm using plain JavaScript and I've bee coding a hardcore platformer game. I want there to be multiple enemies at once and before I write up the code I have a question. How do i approach that? Do I ...
0
votes
1answer
136 views

How to make Pong Ball Control?

I want to know how can I make the control of the Pong Ball in Plain Javascript. I would like to know how to make the ball faster when it hits the edges just like the original pong game, or how if the ...
-2
votes
1answer
62 views

Understanding Javascript Variable Initialization [closed]

I saw this piece of code while doing research for an idle game I am making: ...
21
votes
5answers
7k views

Prevent cheating in html Javascript game [duplicate]

I have made a Javascript/html game. Now the problem I have is anyone can edit the client code and cheat in game for example there is a man shooting a enemy. Man HP:      &...
2
votes
0answers
921 views

SignalR For Multiplayer Game Development [closed]

I've been working with SignalR for live chat and notifications in .NET platform and was wondering how much is it worth for working on games development? I've made ...
0
votes
1answer
1k views

How do I make the background color fade into a different color after hovering it? [closed]

I was trying to make the starter inputs for my text rpg change the background color in a fade effect with JQuery, but I cant figure out what i did wrong. Heres the part im focusing on: ...
1
vote
1answer
4k views

Rotate arrow on canvas

I need to draw a flow dynamically based on some user choices. In that flow I want to draw the choices (blue circles with number) and the directions of that choices (line and arrow). For example: node ...
1
vote
0answers
325 views

Balancing fight script in Text Based Javascript Game

I'm working on a little text based javascript game and I've been using chromes Javascript console for the output. The 'game' works off a series of methods written into an object called ...
0
votes
3answers
3k views

Add a Countdown Timer that increments in JavaScript and resets per level(Resovled)

I am currently developing a Simon says type game using jquery and javascript. I have linked a fully copy of the game on github Github download and unzip to see the game fully https://github.com/...
1
vote
1answer
203 views

Get speed from vector using box2d and javascript

I need to find the speed of an object in a game. The game is made in HTML5 with jquery and jquery.box2d. For this I can use these methods: ...
0
votes
1answer
586 views

confusion in animating a sprite sheet using craftyjs

can anyone help me with this : http://jsfiddle.net/B5UsC/15/ you can see that the sprite animation is not rendering correctly and i am guessing that i am not using the exact width of the sprite ,i ...
0
votes
1answer
1k views

jQuery - calculate map polygon Width and Height

Let's say I have this map: ...
0
votes
1answer
596 views

jQuery - div border around map area

Let's say I have this map: ...
0
votes
1answer
341 views

setting a time delay between two frame when animation a sprite sheet

this is my jsfiddle :http://jsfiddle.net/Z7a5h/ As you can see the animation of the sprite sheet when the player is not moving is too fast so i was trying to make it slow by declaring two variable <...
0
votes
1answer
113 views

How to change the start position of my 2D game

I am trying to create a game where you have to move a ball on a platform. At the start of the game, the ball is dropped on the platform and then you can move it around. This is al working, no problems ...
4
votes
4answers
4k views

How do I write a simple 2-player server?

I've recently started learning JavaScript and HTML and developed simple 2-player game such as tick-tack-toe, battleship, and dots & boxes. However, these 2P games can only be played on one ...
-1
votes
1answer
922 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 ...
4
votes
1answer
1k 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
votes
2answers
340 views

Game library for 2D animation JS browsergame [closed]

I am developing a 2D multiplayer online browsergame. On the backend I have set up a Node.js server. Everything works perfectly. On the frontend I will use jQuery and several libs for collision etc. ...
3
votes
2answers
5k views

Receiving keyboard events on a canvas in Javascript

I need to receive keyboard events in a canvas element. Click events are received but key presses aren't. Here is my code which doesn't handle key events: ...