Updates and Progress report.

0 views
Skip to first unread message

Ken

unread,
Aug 15, 2010, 10:48:17 AM8/15/10
to libgamepieces
I have just pushed the latest commits for http://github.com/burlingk/libgamepieces
and http://github.com/burlingk/lgpgame

lgpGame is starting to take shape. The maze generation code runs
without crashing, but it is generating half as many rooms as I
expected. I have decided to store the ObjectID of each room in the
maze in a three dimensional array so that they can be quickly
accessed. In some ways that is important, and in some ways it is not.
It won't make it any easier or harder to traverse the maze once it is
generated, but it does make it easier to find a space quickly to see
if it already has a room in it. i.e. It makes generating the maze
easier.


On the libgamepieces front, I have started turning various tuples into
classes and structs as appropriate. lgp::Message is now a class.
lgp::Coordinate is now a struct. I want to make code easier to read.

Ken

unread,
Aug 16, 2010, 10:04:52 AM8/16/10
to libgamepieces
I just did another commit for the lgpgame project! ( http://github.com/burlingk/lgpgame
)


I worked for a few hours today on code to display information about
the room you are looking at. The current version of the "main.cpp"
simply creates a room object, and displays it to the screen.

Look at http://groups.google.com/group/libgamepieces/web/lgpgame-example-room
for an example of what are room might look like when displayed.


Ken

unread,
Aug 17, 2010, 10:13:37 AM8/17/10
to libgamepieces
Just did another update to the lgpGame project:
http://github.com/burlingk/lgpgame

For this one, I managed to track down the bug that was producing only
half the expected rooms.

I had made a mistake in the code, where half of the code was looking
for coordinates in a range of -5..5 and the other half was looking for
0..10. The effective result was that they were combining to give me a
range of 0..5 for all axises for the locations of rooms. This
basically means that rooms were only being created for locations
between 0,0,0 and 5,5,5.

Next I need to start work on code to get the character to move and to
process input. :-)


Ken

unread,
Aug 17, 2010, 1:55:49 PM8/17/10
to libgamepieces
Just did another update to both repos.

The status for lgpGame is very promising. At this point in time, the
maze is navigable.

At the moment, the command parser is very simplistic, and only
responds to:

north
south
east
west
up
down
quit
exit

These commands do the obvious thing.

The maze is still somewhat boring, in that I don't have descriptions
in place yet, but the randomizer for descriptions may take a bit of
work.

I have figured out how to do cross compiling for Windows from Linux,
so I don't have to reboot so often to test things out. I can just
compile it as a windows binary, and run it in wine to test it. :)

Reply all
Reply to author
Forward
0 new messages