I'm creating a simple asteroids-like game in CSS and JS using the DOM over canvas for...experimentation purposes.   My code is pretty small in this example to make it easy to see what's going on below. The ultimate goal: Let arrow keys smooth...
I am developing a small app in html5 canvas. I need to move a object in circular motion using keyboard keys . I am able to move the object using keyboard keys  but there are bugs .The object do not move back ward or forward  from the same position .C...
I'm creating a 2d game in HTML5 canvas. It's an isometric world, so actually it's also 3d. You always see that isometric games use tiles, and I think the reason is just for the depth logic. My goal is to create the game without using a ti...
I am using Matter.js physics in an attempt to create soft bodies. I was able to create a body like this:    However I am not sure if this is the "soft body" I want. It is true that this body is not entirely rigid and has that bouncy feel when...
I'm creating a side-scrolling endless space themed game using canvas and JavaScript. I'm controlling a spaceship just by using the up and down arrows and I want to implement some kind of movement easing so that the ship doesn't just stop...
I'm not using any engine, but instead trying to build my own softbody dynamics for fun using verlet integeration. I made a cube defined by 4x4 points with segments keeping its shape like so:    I have the points collide against the edges of the s...
So I've wrote a microbe animation.  It's all cool, but I think that it would be even better, if the microbe would be able to eat diatoms, and to destroy bubbles.  The issue is that the microbe is made of bezier curves. I have no idea how to...
I have an Array of 16 billiard balls in JS and want to move each ball smoothly with its direction and speed. For that I set up a timer, calling UpdateThis() every 42ms (for 24 fps). The problem is that UpdateThis() takes 53ms as firebug states. Now U...
I'm developing a Javascript based multiplayer game. So far I have the basic server, client and networking ready.  I did have an issue where my player was moving faster on a 120Hz screen as opposed to a 60Hz screen. I've fixed this by multiply...
Solved, see bottom of post for final algorithm  Background: I am working on a 2D platformer using JS and the HTML canvas element. The level map is tile-based, but the player is not clamped to the tiles. I am using a collision detection algorithm outl...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.