5 years agoSupport for z ordering of objects. Debug overlay is Z=100 and the game debuginfo
Karol Krizka [Tue, 28 Aug 2012 12:15:02 +0000]
Support for z ordering of objects. Debug overlay is Z=100 and the game
HUD is Z=10. Rest is Z=0.

5 years agoF3 now hides the debug overlay.
Karol Krizka [Tue, 28 Aug 2012 12:07:06 +0000]
F3 now hides the debug overlay.

5 years agoDraw only visible objects. DebugOverlays are invisible by default.
Karol Krizka [Tue, 28 Aug 2012 11:29:51 +0000]
Draw only visible objects. DebugOverlays are invisible by default.

5 years agoDebugView can now render lines of text. Added DebugBox2D to show the
Karol Krizka [Tue, 28 Aug 2012 11:26:53 +0000]
DebugView can now render lines of text. Added DebugBox2D to show the
number of Box2D bodies being used.

5 years agoDebugFPS now actually shows the FPS.
Karol Krizka [Tue, 28 Aug 2012 11:16:29 +0000]
DebugFPS now actually shows the FPS.

5 years agoDebugViews can now be added (created a DebugFPS, which just shows
Karol Krizka [Tue, 28 Aug 2012 11:10:19 +0000]
DebugViews can now be added (created a DebugFPS, which just shows
'TEST') to an overlay and are automatically packed into the available area.

5 years agoGameObject name is now passed as a keyword argument, so is the unused
Karol Krizka [Tue, 28 Aug 2012 10:15:09 +0000]
GameObject name is now passed as a keyword argument, so is the unused
parent. Also classes to hold debug information are created.

5 years agoAstroids are now randomly generated every 100 frames. astroidgenerator
Karol Krizka [Tue, 28 Aug 2012 09:44:21 +0000]
Astroids are now randomly generated every 100 frames.

5 years agoAdded shield functionality.
Karol Krizka [Mon, 27 Aug 2012 12:16:53 +0000]
Added shield functionality.

5 years agoThe score is updated by 1 per frame drawn.
Karol Krizka [Mon, 27 Aug 2012 12:09:22 +0000]
The score is updated by 1 per frame drawn.

5 years agoAdded a HUD which shows shield strength and score. These are currently hud
Karol Krizka [Mon, 27 Aug 2012 12:07:17 +0000]
Added a HUD which shows shield strength and score. These are currently
just placeholder variables.

5 years agoInitialize pygame modules on game creation.
Karol Krizka [Mon, 27 Aug 2012 11:59:00 +0000]
Initialize pygame modules on game creation.

5 years agoCopy the density+friction when creating a new smash object.
Karol Krizka [Mon, 27 Aug 2012 10:55:22 +0000]
Copy the density+friction when creating a new smash object.

5 years agoTweaked the ship's smash properties.
Karol Krizka [Sun, 26 Aug 2012 22:52:05 +0000]
Tweaked the ship's smash properties.

5 years agoIt is now possible to define different smash properties for different
Karol Krizka [Sun, 26 Aug 2012 22:48:10 +0000]
It is now possible to define different smash properties for different
objects.

5 years agoThe ship is rigged to lose control if hit by an astroid.
Karol Krizka [Sun, 26 Aug 2012 21:35:20 +0000]
The ship is rigged to lose control if hit by an astroid.

5 years agoClear forces after simulation, as suggested by pybox2d documentaiton.
Karol Krizka [Sun, 26 Aug 2012 21:29:54 +0000]
Clear forces after simulation, as suggested by pybox2d documentaiton.

5 years agoGObjBox2D now has an area attribute. When the body's position is outside of this
Karol Krizka [Sun, 26 Aug 2012 10:35:47 +0000]
GObjBox2D now has an area attribute. When the body's position is outside of this
area, the object is automatically deleted.

5 years agoGame objects now require a name, GameObject.update() is called every
Karol Krizka [Sun, 26 Aug 2012 10:22:47 +0000]
Game objects now require a name, GameObject.update() is called every
turn, GObjBox2D stores a pointer to itself inside user data of a Box2D
body, bullets are removed when they hit an astroid.

5 years agoPut bullet into its own class.
Karol Krizka [Sun, 26 Aug 2012 01:06:01 +0000]
Put bullet into its own class.

5 years agoThe gun is now managed by its own class.
Karol Krizka [Sat, 25 Aug 2012 23:52:59 +0000]
The gun is now managed by its own class.

5 years agoMade the ship rotation slightly faster.
Karol Krizka [Sat, 25 Aug 2012 23:47:17 +0000]
Made the ship rotation slightly faster.

5 years agoThe ship now rotates with the speed and the bullets are fired relative
Karol Krizka [Sat, 25 Aug 2012 23:43:09 +0000]
The ship now rotates with the speed and the bullets are fired relative
to the ship.

5 years agoShip now moves left and right within 0+-100 using left and right
Karol Krizka [Sat, 25 Aug 2012 23:29:14 +0000]
Ship now moves left and right within 0+-100 using left and right
keyboard buttons.

5 years agoDon't draw AABB boxes anymore.
Karol Krizka [Sat, 25 Aug 2012 23:09:12 +0000]
Don't draw AABB boxes anymore.

5 years agoThe beginnings of an astroid game. A ship that can fire at a randomly
Karol Krizka [Fri, 24 Aug 2012 16:28:32 +0000]
The beginnings of an astroid game. A ship that can fire at a randomly
generated astroid.

5 years agoThe only way to update a Game state is through listeners now.
Karol Krizka [Fri, 24 Aug 2012 16:28:18 +0000]
The only way to update a Game state is through listeners now.

5 years agoSmasher now doesn't try to break-up non-polygon shapes, as we don't know
Karol Krizka [Fri, 24 Aug 2012 16:27:44 +0000]
Smasher now doesn't try to break-up non-polygon shapes, as we don't know
how to do that yet.

5 years agoMoved the code that performs smashing on contact to the smasher module, pointbasedsmash
Karol Krizka [Fri, 24 Aug 2012 14:50:19 +0000]
Moved the code that performs smashing on contact to the smasher module,
so it can be reused in other code.

5 years agoThe area over which points are generated for contact based collision
Karol Krizka [Fri, 24 Aug 2012 00:22:51 +0000]
The area over which points are generated for contact based collision
smashing is now proportional to the impulse at the point.

5 years agoAdded a minimum area for new polygons in smasher.
Karol Krizka [Fri, 24 Aug 2012 00:19:51 +0000]
Added a minimum area for new polygons in smasher.

5 years agoAdded a bit more debugging output, the test is now focues on boxes 2+3
Karol Krizka [Fri, 24 Aug 2012 00:19:16 +0000]
Added a bit more debugging output, the test is now focues on boxes 2+3
and made box 3 a bullet.

5 years agoSetup first box as the main test of smash-code and implemented it using
Karol Krizka [Thu, 23 Aug 2012 23:58:45 +0000]
Setup first box as the main test of smash-code and implemented it using
a gaussian spread around impact points with a static width.

5 years agoInitial import.
Karol Krizka [Thu, 23 Aug 2012 20:37:45 +0000]
Initial import.