EWClay's Journal

Game programming
6 comments
1 followers
6 entries
Advertisement
EWClay
April 06, 2013
Archiving C++ objects to JSON
Last time I talked about serialization of C++ objects to and from an abstract archive format, using a templated interface similar to Boost Serialization. This time I want to get a little more specific and explain how objects can be converted to JSON (http://www.json.org/).

It's quite instructive to …
2,944 views
EWClay
April 05, 2013
Game data and serialization
Getting data into a game is a big subject and I want to talk about some of the systems I'm using in some detail, so it may take a few posts to get through it. I will narrow the subject a little first though: this is not going to be about asset loading - textures, meshes, sounds and so on. Rather it…
2,550 views
EWClay
March 28, 2013
Command queues
Squad movement is looking ok now.

Given solid pathfinding code and physics, it was already working reasonably well in that units could simply push other units out of the way to get where they wanted to go. It just didn't look that good. I chose a simple solution; as my squads are quite small I don't…
2,105 views
EWClay
March 21, 2013
More pathfinding
Squad movement is giving me a bit of trouble.

I've got it working fine for one unit, but I want to select several units together and have them move as a group, without getting in each other's way. My first thought was to pick the closest unit to the destination, make that the leader, and have the ot…
1,527 views
EWClay
March 18, 2013
Immediate mode GUI
My GUI is sort of done. Well, code is never really finished, but it's functional and I'm looking at other things now.

http://dtosoftware.wordpress.com/2013/03/13/an-immediate-mode-gui/

As it's almost stand-alone, I'm releasing the source too:

http://code.google.com/p/scavenger-library/

It requires Visu…
2,504 views
EWClay
March 17, 2013
A-star pathfinding
Here's an implementation of A* in C++ which hopefully works and is quite sensible.

Note that

  • It doesn't use a million templates, or any for that matter (except std containers).
  • It doesn't do stupid things like trying to erase out of the middle of a queue.
  • It assumes nothing about data structures so is …
2,314 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
8 Followers
15 Entries
9 Followers
johnhattan
Programmer
1,277 Entries
46 Followers
ApochPiQ
Generalist
628 Entries
43 Followers
dgreen02
Generalist
338 Entries
55 Followers
Advertisement