Skip to content Skip to sidebar Skip to footer
Showing posts with the label 2d

How To Do This Coordinate System Operation More Efficiently?

I'm making a 3D game, where the player's back should always be facing the camera and he sho… Read more How To Do This Coordinate System Operation More Efficiently?

Flipping An Array Of Points As A Shape Around Its Center Vertically Or Horizontally

I have a web app that receives some array of points and I need to draw them on a canvas. Unfortunat… Read more Flipping An Array Of Points As A Shape Around Its Center Vertically Or Horizontally

Shifting Rows And Columns In 2d Arrays - Javascript

I have a situation as such: var array = [ [1,2,3], [4,5,6], [7,8,9] ] And I am trying to cre… Read more Shifting Rows And Columns In 2d Arrays - Javascript

Why Isn't My Homing Missile Algorithm Working?

I've taken code that's heavily inspired by this answer but my projectile is not homing in t… Read more Why Isn't My Homing Missile Algorithm Working?