[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] "Seagame" Demo
http://kschnee.xepher.net/code/seagame_dist.zip
Here is a demo of a playable "worldsim" with some basic physics added to
the Terragens island code. You control an intrepid triangle with the
arrow keys, trying to reach the nearby ship (brown triangle with
"sail"), board it by hitting Enter... and then use X and C to fire a
cannon at those square targets! You can go over the edge of the screen
to find more targets in the four zones immediately next to the starting
zone, and how far you can go beyond that is probably a function of how
big variables can get. Other features:
-Widgets display current heading, water depth/land height, and score
-Land blocks the ship while you're in it... mostly.
-Jumping (even while in a ship)
-Semi-realistic gravity; cannonballs are given forward and upward
velocity and subjected to downward acceleration
-Objects hitting the ground or each other can take damage, using a
poorly-planned damage system
-Item system calculates objects' mass (in kg) based on materials and
size (in meters), and tracks other interesting variables
-Zero optimization and many Print statements for that FPS-killing style.
Because the physics are independent of the graphics engine, this could
be brought up to OpenGL or even PyOgre.
What I'd like to do with this involves using a real graphics system of
some sort (at least zoomed-in 2D with scrolling) and adding villages you
can visit, dungeons to explore, and monsters to fight.
Kris