comp380team3 / PuzzlePathDimension

Class project for COMP 380 at California State University, Northridge
0 stars 0 forks source link

Simulation state #14

Closed Twisol closed 11 years ago

Twisol commented 11 years ago

This exists currently; however, there is no goal included in the level. When the ball collides with the goal, the simulation state needs to be exited.

Jjp137 commented 11 years ago

Reminders for me (from 3/25):

Jjp137 commented 11 years ago

I'm going to add the [Obsolete] attribute to the Initialize() methods that the Ball, Platform, etc. have in order to mark them as deprecated. This will cause a compiler warning when someone uses them, but I really want to move the code that's in Initialize() into the constructors. Does anyone have any comments about it?

Twisol commented 11 years ago

I think that's a great idea! [Deprecated] shouldn't cause the build to fail, but it will complain loudly. +1 from me!

Jjp137 commented 11 years ago

I made some progress today on this task, which can be seen here: https://github.com/Jjp137/PuzzlePathDimension/tree/game-mechanics-newarch

Here's what I added:

Nothing really happens once the goal is hit, though. The game just stays in that state until you hit the restart button.

If you want to take a look at that branch, here are the controls:

Most of the stuff above is done with rectangular collision for now. I'll replace it when Brian_Collision is stable enough.

I'm not going to make a pull request right now, though. The code is such a mess in that branch, and it's just not fit to be in master right now. I can show it off on Wednesday, I suppose, but I really need to refactor it.

Jjp137 commented 11 years ago

Resolved by #32.

If there are improvements that could be done, feel free to make a new issue about it. :)