Over a million developers have joined DZone.

Iterative Software Development, Part 2

DZone's Guide to

Iterative Software Development, Part 2

· Agile Zone
Free Resource

See how three solutions work together to help your teams have the tools they need to deliver quality software quickly. Brought to you in partnership with CA Technologies

Originally authored by Andrew Wagner

Welcome back for episode 2! (Part 1 is posted here.) It's time to implement our first real feature. And with that, comes a decision: what feature should we implement? Some map to fly around in? A way of keeping track of all the entities in the application? A game loop?

Well, I'm not going to say that these are wrong, and they'll all be needed eventually, but let me tell you how I would make the decision. That is, after all, the point of this series. I make decisions like this based on value for the user.

What is it we're building? A space game. What is a space game? One in which you fly around a spaceship. Well, flying is a bit much to take on all at once, so I'll settle for being able to draw a spaceship. After all, that is the definition of a space game. If I were to show this empty window that we created last time to someone and say "here's my space game", the most obvious question would be "...well, where's the space ship?". So, that's what we'll do!

Now, I'm no artist at all. Fortunately, there's some awesome free art available on opengameart.org. In particular, I'll be using this set of graphics, done by kenney.nl.

There's one other credit to give out. I did a bunch of research to figure out the absolute minimum java graphics programming I could get away with for this series. Many of the screencasts out there do lots of crazy copying around of bits of arrays. I may very well need to do that eventually, but I wanted something ultra-simple to start with. Ultimately, this page was extremely useful in figuring that out, so props to them.

Ok, enough talk, let's get coding!

Discover how TDM Is Essential To Achieving Quality At Speed For Agile, DevOps, And Continuous Delivery. Brought to you in partnership with CA Technologies


Published at DZone with permission of Scott Leberknight, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}