Tagged Questions
3
votes
1answer
56 views
Collision detection accuracy
How do you guys think I can improve the code for collision detection on my website asteroidfield.eu5.org? The current code is
var dx = Math.abs(c1.getcx() - c2.getcx());
var dy = Math.abs(c1.getcy() ...
0
votes
1answer
74 views
My second attempt at canvas spatial grid collision? Did I get it?
After posting my first question and my first attempt which you can see here,
My first attempt at canvas spatial grid collision? Please be honest!
I have re-written it to try and implement what the ...
3
votes
1answer
99 views
My first attempt at canvas spatial grid collision? Please be honest!
The code,
$(document).ready(function() {
window.addEventListener('keydown', keyPress, true); // event listener for keyboard presses
function keyPress(evt) {
if(engine.activeBlock) { // block is ...
1
vote
1answer
74 views
Breakout-like game in JS
I've made a small breakout game, so far with one level. My plan is to expand it so that it has a level editor, but for now I wanted to make sure that everything is currently looking well-designed. I ...