You Gotta Squeeze Every Pixel

Profile
None
Check out what's new with Citizen here. For great justice.
104 comments
72 entries
Advertisement
Staffan E
June 27, 2009
Flocking behavior
Flocking behavior
Weekend again. I pushed on and finished the basic implementation of alignment behavior, and with that flocking (separation, cohesion and alignment) is up and running. I'm not perfectly happy with it but it's a tweaking issue and I want to draw a line here and push on to more critic…
845 views
Staffan E
June 14, 2009
Some more behaviors
Some more behaviors
Now there is both separation and cohesion steering behaviors in place, so basically the ships follow the player, move as a group but without colliding with each other. Their movement is still very jittery and "moth-like" and I've experimented with angular physics to keep them fro…
783 views
Staffan E
June 12, 2009
Delayed sitrep
Delayed sitrep
Finally after two months of all work and no play I've managed to get a few days off. Really off. Lately having a day off has still meant working for a couple of hours plus the irrational worrying that comes with studies. I don't think I've had a free weekend since the easter holidays …
474 views
Staffan E
May 05, 2009
Entity-component design sketch
Entity-component design sketch

The entity-component design that I'm working on is slowly but steadily growing. I've taken a lot of influences from the notable thread Outboard component-based entity system architecture started by Sneftel a while back. I'm using a similar model where there is a strong…

444 views
Staffan E
May 01, 2009
I'm falling out with shared_ptr
I'm falling out with shared_ptr

Today's insight is short. Don't go crazy with the shared_ptr template. It's got its uses but don't overuse it. I did it. I'm paying for it. My code looks horrible and I get extra work overhead cleaning it up. The lesson is simple:

Only use shared_ptr when responsibilit…

768 views
Staffan E
April 29, 2009
Contemplation
Contemplation

I'm stuck working on a seemingly infinite series of programming assignments and reports for school. Parallel Programming, Image Analysis and OS, they're good courses but they all lean heavily on assignments which makes them a meaty combination. So no technical progress on Citizen, my c…

474 views
Staffan E
April 17, 2009
Citizen: Spring cleaning
Citizen: Spring cleaning

I've spent the last couple of days doing a little bit of this and a little bit of that around the game, not really pushing any boundaries. I put a lot of strain on the design while pushing the release of P1 so naturally there was a lot of patching and pinning to do.

Some thin…

418 views
Staffan E
April 14, 2009
OpenAL error handling...
Why does OpenAL have to use such a crappy way to do error handling? I mean, I know it's supposed to be C compatible and throwing exceptions is not allowed, but what the h* happened to returning error codes? Most AL functions don't return values at all so returning error codes should be fine. The wh…
1,228 views
Staffan E
April 12, 2009
Untitled
The increasingly dreaded "Display uniqueness" error

Some of you have already seen this. Sometimes the combination Vista + nVidia card + Direct3D Debug runtime causes D3D applications to fail without hope of recovery. The message "Direct3D9: (ERROR) :Lost due to display uniqueness change" is given by…

531 views
Staffan E
April 07, 2009
Citizen: Sitrep and major release
Citizen: Sitrep and major release

I'm back after some absence with a fresh Citizen update. And this one is big. In fact I'm ready to present to you the very first project prototype.

Citizen Prototype 1 [Download]

If you haven't tried it yet, now is the perfect time to do it. P1 features all the things…

627 views
Staffan E
February 15, 2009
Citizen: Sitrep
Citizen: Sitrep

Since last update I have worked on details mostly. Like adding an engine trail to the player ship, tweaking the explosions a little and adding batching of sprites before drawing them. I think the engine trail is necessary in order to get a better reference point of player ship motion…

420 views
Staffan E
February 08, 2009
Citizen: Progress update
Citizen: Progress update

Hi everyone. It's been a while since my last post and I've been keeping busy, mostly Citizen-busy. Here's the latest presumably-stable build. Please try it. [smile]

Citizen.zip

And here are some up-to-date screens.


A lot has happened to the game and I'm about halfway through my…

456 views
Staffan E
January 21, 2009
Citizen: Something on Singletons.
Citizen: Something on Singletons.

Before joining the Snow Hard team I hadn't worked with the singleton pattern at all. I had picked up stray pieces from an ongoing debate on whether or not to use it, but I hadn't picked up any facts about it. I tampered some with singleton classes during my work on …

416 views
Staffan E
January 20, 2009
Citizen: Could anyone help me with a test run?
Citizen: Could anyone help me with a test run?

Hello. I'd like to ask you guys for some help. I'm in sore need of anyone who could check if Citizen executes on their computer. All you would have to do is to download the ZIP file below, unpack it and run Citizen.exe. I would be immensly grateful if y…

512 views
Staffan E
January 20, 2009
Citizen: Local system information.
Citizen: Local system information.

For debugging purposes I wanted to add some intormation on the running system to the log file during program startup. This information would be OS version, processor name and speed, physical memory installed and graphics adapter. Basing the program entirely on the …

455 views
Staffan E
January 20, 2009
Citizen: Graphics API isolation.
Citizen: Graphics API isolation.

Since last time I posted I've worked on the graphics system, trying to isolate as much API-specific code as possible. Before I began my GraphicsDevice class which is the graphics system motor was littered with DirectX9-specific code, and some of it even leaked out in…

440 views
Staffan E
January 09, 2009
As smart as any pointer.
Yesterday i finally managed to track down a memory bug that was getting on my nerves. It turned out that objects of a certain class were being copied around inside a container, which worked fine until I added a member that pointed to heap memory. The default copy constructor caused many objects to …
392 views
Staffan E
January 08, 2009
A prototype
As an open gesture I've bundled up what I have so far (stable) with Citizen in a zip file. Basically it's where I left off this fall; it demonstrates little but the steering. Grab it at the link below and take it for a spin, see if it runs for you. You control it entirely with the mouse, it should …
409 views
Staffan E
January 07, 2009
Back with Citizen
As I mentioned before I had to put Citizen aside up until now. In the last couple of days however I've had some time to review the project and make some improvements. I thought I'd give you a quick briefing of its status.

First off, as you might have noticed, I've changed the project name from Citiz…
379 views
Staffan E
January 06, 2009
An unexpected turn of events.
Long time no see, dear denizens of journal land. It's been a few months since my last journal post. You may think I've been busy with other things and have had no time for game development. The case is actually the opposite.

School ate most or all of my time during September and October. I literally…
408 views
Staffan E
September 14, 2008
Math extravagance
Oh, and here is a problem for all you math junkies out there:

cosh(x) - sinh(x) = ii
where i2 = -1
Solve for x.

A rating cookie to the first one who gives me the correct answer. [grin]
413 views
Staffan E
September 14, 2008
Some game design ideas
During the past week I've in lack of coding time been putting my mind to work on gameplay design. So far I've got basic control of the ship nailed down to my liking but beyond that it's pretty generic. My combat model sucks at this time and will keep sucking for I while longer since other aspects h…
421 views
Staffan E
September 04, 2008
Back to reality.
Since Monday morning school has begun so I haven't had any time to work on Citizen. I'm coming back from a double year off where I've mostly been working so I'm guessing it'll take some time to get back into studying. On the other hand I think I should try to keep my work on Citizen going even if s…
356 views
Staffan E
August 27, 2008
There's nothing like good progress
Things are speeding along. I have a whole lot of new features and improvements to present. You can check the screenshots below to see most of these things. First and most notably I've changed the appearance of the player ship as well as the target dummies. I don't think this is how they will look i…
472 views
Staffan E
August 22, 2008
Halfway to Demoville
Inspiration has been my enemy these last few days. Not the lack of it but the way it tries to make me work on things that are useless so far. It's taken a lot of time and energy to stay on track and work on the things I'm supposed to. I mean I have no use for an advanced drawing system right now; m…
395 views
Staffan E
August 20, 2008
Revelation
I've done a lot of minor changes to the program, like adding automated fire while holding down the LMB and drawing a "health bar" to my arbitrary red targets. It takes about five hits to destroy them and now it shows too. I also added proper dot product line/circle hit detection instead of the angl…
437 views
Staffan E
August 17, 2008
Angles done and locked up and killed
Most of yesterday's and today's work has been uninspiring but necessary source housekeeping and rewriting earlier temporary solutions. First I set out to finish my Angle class that wraps phase and period values. Finished it basically lets me make closest interpolations between locations on a unit c…
374 views
Staffan E
August 15, 2008
Angles
I finished some basic gunfire and hit detection today, basically using a list of targets (red blobs) with bounding circles and a hit line tracing forward from the player ship. It works alright but then again it is far from an advanced model. I also began working on an Angle class that wraps a float…
293 views
Staffan E
August 13, 2008
Housekeeping
I've spent the day wrapping up all code related to graphics in one central class. By now it's working fine and my workspace will be a bit cleaner when I begin working on enemies and gunfire. After that I should have something that one can play, not just run. Oh yeah!

I got a nagging feeling today th…
335 views
Staffan E
August 12, 2008
Brave new game project: Citizen Heist
After taking some time off game development, last week I launched into a new project. It's been good to tkink about some other stuff for a while and also to take some time to think about how I would like to proceed after finishing development on BlockStacker. If I learned anything from that project…
247 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
10 Followers
15 Entries
11 Followers
johnhattan
Programmer
1,277 Entries
48 Followers
ApochPiQ
Generalist
628 Entries
44 Followers
dgreen02
Generalist
338 Entries
56 Followers
Advertisement