Questions tagged [gamequery]

gameQuery is a jQuery plugin to aid JavaScript game development.

gameQuery is a jQuery plugin to help with JavaScript game development.

22 questions
0
votes
1 answer

Javascript Game - Objects Spawn on local copy, not once uploaded

I'm working on a basic, "avoid the falling objects" game in Javascript with GameQuery. Enemies Spawn often, and power ups periodically. The the power up spawn function is a copy of the enemy spawn function (shown below) with the variable names…
Gantrof
  • 31
  • 9
0
votes
1 answer

in gamequery; how would I move an object "slowly" from its "dropped" location to where it needs to go?

I am not trying to get it to follow a set path since the path is variable. but I am trying to set the object to fall in a noticable pattern from where Idrop it. $(".gQ_sprite").mouseup(function() { //test condition to see if…
j.gooch
  • 305
  • 1
  • 4
  • 21
0
votes
1 answer

Scene change concept in JQuery Games

When my son, an early teen, was writing games with Pygame, I recalled I had to implement the scene-change code for him by myself. Now he's using jQuery to write some simple games. Can anyone help us learn how to change scenes in jQuery games? The…
0
votes
1 answer

Javascript(gameQuery game) objs is too many to run normal

I'm writting a js game with "gameQuery" jQuery plugin, a shooting game. While there are many bullets (for examples 100 or more), the animation would turn very slowly. I use code blow for cycling moving DOM, means excute function per 20 millisecond.…
janekey
  • 264
  • 1
  • 3
  • 9
0
votes
1 answer

GameQuery collision detection not working properly

Below is my code. Collisions actually register and execute, but only if your ship is at the right edge of the screen and one of the monsters is behind you. It makes no sense and I'm going crazy. Please help. Demo:…
user736893
0
votes
1 answer

Strange behaviour with Gamequery's collision function

I'm trying to handle the collisions on a game with collision() but I don't understand what's going on. Here's a summary: $("#screen").playground({height: PLAYGROUND_HEIGHT, width:…
user1319182
  • 481
  • 12
  • 26
-2
votes
2 answers

Save and update with uniqid in database

I tried to insert the player with a unique id in the database. This model works for me, but if I give it a key update it duplicates it in my database. Option 1 $id = uniqid(); $insert_player_query = mysqli_query($db,"INSERT INTO players…
MrDons
  • 1
  • 2
1
2