d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > 1200fg For Help With Javascript Project > Implement Collisions In A Game
Add Reply New Topic New Poll
Member
Posts: 4,635
Joined: May 3 2009
Gold: 1,232.52
Nov 24 2015 12:16pm
It is a small project to create a javascript based game. It is a simple sidescrolling game where the player controls a plane and shoot bullets at oncoming enemies. Much of the code is written, here is what I need done.

-The existing code has a controllable plane and enemies flying across the screen but nothing collides. You will be sent the existing code (~300 lines) and a snippet of code for the algorithm being used for collisions. The method I am using is the bounding box method that uses a function to check the intersection of two objects.

-Your task is to implement the collision function given to you. If an enemy and a bullet collides, delete both objects. If an enemy and the player collides, end the game.

I can pm you more info if you are interested. I suspect this will not take you very long if you know what you are doing

1200fg for this

This post was edited by KitsuneYosh on Nov 24 2015 12:16pm
Member
Posts: 2,754
Joined: Nov 26 2007
Gold: 1,339.81
Nov 25 2015 07:55am
i can do this
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll