Accelerometer - Rolling Ball in Ball?

i want to use the phones accelerometer for rolling a Ball in a Ball. The movement works correctly, the problem is th...

Unable to display 2d isometric tiles correctly?

I'm facing a problem while displaying my tiles with both html canvas and javascript. I'm wondering me why the tiles...

Why doesn't this 2D collision fully work for my images??

I am having a collision in my javascipt game among the player, bullets, and enemies. Previously, the bullets have be...

Plotting a 2d Array with mplot3d?

I have a 2D numpy array and I want to plot it in 3D. I heard about mplot3d but I cant get to work properly Here's a...

Declare an empty two-dimensional array in Javascript??

I want to create a two dimensional array in Javascript where I'm going to store coordinates (x,y). I don't know yet ...

Function for rotating 2d objects??

Is it possible to write a function in python that could rotate any 2d structure with the arguments being only the co...

How can I convert 3D space coordinates to 2D space coordinates??

I'm using a Lua API. I'm trying to transform 3D space coordinates to 2D space coordinates. I've asked google but I c...