Revision 905197
Go back to digest for 4th January 2009Features in Games
After a few months where Kolf-NG was just a quite complex rendering engine for simple geometric objects, I thought that it is time to make it a game.
As I was without internet connection last week, and SVN does not allow offline commits, here is everything at once.
Let's start with the new classes:
* The Kolf::HoleObject completes the set of base elements.
* The Kolf::Player records scores. (Currently, only local players are supported.)
* The Kolf::Game class manages players, putting control, and so on.
* The Kolf::ScoreCard shows the scores which it gathers from the Game class.
* The Kolf::EmptyOverlay closes the gaps in overlay support.
Additionally, improvements and additions all over the code include:
* disable the squared format of the 2D view temporarily (it does not work correctly, either)
* a second hole for the test course (created with KWrite as there is still no un-inconvienent editor in Kolf)
* a simple garbage collection in the 2D view for objects on its scene
* some Kolf::Object methods made purely virtual
* added a kolf-ng.desktop file
File Changes
- /trunk/playground/games/kolf-ng
- /kolf-ng.desktop
- /elements/object-hole.cpp
- /elements/object-hole.h
- /elements/overlay-empty.cpp
- /elements/overlay-empty.h
- /engine/game.cpp
- /engine/game.h
- /engine/player-dummy.cpp
- /engine/player-dummy.h
- /engine/player-local.cpp
- /engine/player-local.h
- /engine/player.cpp
- /engine/player.h
- /interface/scorecard.cpp
- /interface/scorecard.h
- /trunk/playground/games/kolf-ng
- /CMakeLists.txt
- /courses/test1.kolf
- /elements/ball.cpp
- /elements/ball.h
- /elements/object-ellipseblock.cpp
- /elements/object-ellipseblock.h
- /elements/object.cpp
- /elements/object.h
- /elements/overlay.h
- /elements/putter.cpp
- /elements/putter.h
- /elements/registry.cpp
- /engine/course.cpp
- /engine/course.h
- /interface/mainwindow.cpp
- /interface/mainwindow_p.h
- /interface/view.cpp
- /interface/view.h
- /interface/view2d.cpp
- /interface/view2d.h