sprint 1 - Gornova/GalaxyArtifacts GitHub Wiki

Galaxy Artifacts sprint 1 overview

This is a retrospective of Galaxy Artifact sprint 1. Here you can find source code download as zip

Total time for this sprint: 9hours

Goals

Goals for this sprint were create basic blocks for Galaxy Artifacts with a fixed graphics and a lot of work on galaxy generation. I've divided my code in three main bloks:

  • data model: galaxy, stars, planets and connections
  • view: entity manager, entity, StarEntity, gui stuff
  • generation: position, connections, refine

What went right

  • slick2d: simple, easy and I'm master on it
  • delauney triangulation: solves starleanes overlaps with style and with a little of work, using Interfaces could be changed in future without break existing codes
  • problem delegation and top down approach: generate star positions, connect them and refine the work in three different classes. Easy to prototype and change stuff, without have troubles in change something else
  • Freeorion graphics: nice!

What went wrong

  • fluent interfaces: it's hard to design a class with fluent api
  • null antipattern: avoid null it's even hard. In particular on searches in lists. Need a solution: something like apache commons or google guava?
  • focus: it's hard to keep focus in a small project! I need to follow only my sprints decisions, like my method told

See you space cowboy!