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
0 answers
106 views

How to move a character from 1 to 3 squares on a grid?

I need to make a turn based game in js and jquery. The rules are : The 2 characters, the 4 weapons and the 15 obstacles are randomly generated on a grid(made with HTML table and generated in a loop) ...
Shunkashuu's user avatar
0 votes
2 answers
825 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 ...
Nicholas's user avatar
  • 121
-1 votes
1 answer
582 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 ...
Jeremy Dicaire's user avatar
1 vote
1 answer
2k views

How do I make my character jump on a platform?

This is the code I've written so far: Html: ...
Eeea's user avatar
  • 7
0 votes
1 answer
900 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 ...
user79408's user avatar
0 votes
1 answer
203 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 ...
user79408's user avatar
-2 votes
1 answer
68 views

Understanding Javascript Variable Initialization [closed]

I saw this piece of code while doing research for an idle game I am making: ...
Akmedrah's user avatar
21 votes
5 answers
10k 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:      &...
Ohmyholy's user avatar
  • 321
2 votes
0 answers
1k 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 ...
Shihan Khan's user avatar
0 votes
1 answer
2k 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: ...
Johnathan Seelentag's user avatar
2 votes
1 answer
5k 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 ...
Ninita's user avatar
  • 123
1 vote
0 answers
489 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 ...
ryanhagz's user avatar
0 votes
3 answers
4k 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/...
user avatar
1 vote
2 answers
336 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: ...
Tommy Otzen's user avatar
0 votes
1 answer
764 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 ...
Sora's user avatar
  • 89
0 votes
1 answer
1k views

jQuery - calculate map polygon Width and Height

Let's say I have this map: ...
Marinescu Edward's user avatar
0 votes
1 answer
652 views

jQuery - div border around map area

Let's say I have this map: ...
Marinescu Edward's user avatar
0 votes
1 answer
431 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 <...
Sora's user avatar
  • 89
0 votes
1 answer
127 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 ...
Maurice's user avatar
  • 115
5 votes
4 answers
6k 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 ...
GovernorBandicoot's user avatar
-1 votes
1 answer
964 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 ...
user29614's user avatar
5 votes
1 answer
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 ...
DaGhostman Dimitrov's user avatar
-1 votes
2 answers
353 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. ...
Shlomo's user avatar
  • 131
3 votes
2 answers
7k 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: ...
Whispered's user avatar
  • 205