Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better tank game no dimension mapping #19

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from

Conversation

brynnperit
Copy link

No description provided.

David Perit added 20 commits July 4, 2012 17:13
Added a second tank which is coloured red
Added 4 walls around the arena
Conflicts:
	examples/tank/tank.js
Updated options for box2d in cube-collision and tank to take advantage of dimension mapping
Added newer versions of libraries
Added new version of libraries
Limited tank firing speed
Remove console.log commands
Added a procedural sphere creator
Added new version of physics library
…ing setLinearVelocity and setAngularVelocity

Made tanks have physics objects attached
Removed scaling from tanks
Added new version of box2d library
…n set to true. This causes them to do better collision detection against other dynamic objects.

Moved the bullet velocity property out to be grouped with the other properties
…tank's collision boundaries.

Fixed bug related to weird bullet directions
Added collision filters to bullets and tanks so that bullets no longer can collide with the tank that fired them.
Added new version of box2d extension that allows the two above improvements to work
Made the red tank get stunned for a period of time after being collided with so that it moves only according to physics impulses
Added new version of the core library that includes a new version of the math library
… tank

Made the red tank fire shots at the green tank
Changed the way tanks are created so that they don't have to have an x rotation applied after creation
Caused the player's tank to get stunned by impacts, but for a shorter period of time than the AI tank
Caused both tanks to do a full turret rotation over the course of the stun, to visually show that they are stunned
Added a removeExcessRotation function, which simplifies a rotation angle to be still correct but within the range of -PI to PI radians
Simplified some math in the red tank's movement code
Added a new version of the core library
Added new version of core library
…l aren't right, but it's an improvement.

Added newer version of box2d without direction mapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant