Commit Graph

17 Commits

Author SHA1 Message Date
0c2e850c05 Added labels that display energy costs when building 2011-07-07 18:10:05 -04:00
42e2e43ead Huge refactor with the basic goal of reducing complexity in the Game class. Broke a couple of small things in the process - still working on fixing them back up 2011-07-06 14:24:37 -04:00
f90c60b6ac Refactored Vertex and GameVertex classes into their own files, put some functions in GameVertex that made sense there 2011-07-03 16:37:07 -04:00
d04cde49c8 Added rudimentary menu buttons, not yet connected to anything... it feels a bit hackish, to be honest, but I don't think we'll ever have too many to worry about, and if so, we can think about refactoring then 2011-07-02 17:34:11 -04:00
4daaced5d7 Laid the groundwork for a more complex game - introduced a couple of bugs (can attack from anywhere, can't select another of your own vertices in attack mode...) 2011-07-01 14:10:45 -04:00
938e75716c Implemented font framework, print info about each vertex 2011-07-01 13:15:30 -04:00
b31a3e26ab Added some performance boosting framerate regulation 2011-07-01 11:40:38 -04:00
ca60c61ce6 Implemented and integrated title screen - now game crashes at launch, though 2011-06-30 17:21:46 -04:00
6a4b1c4cf2 Refactored a wee bit of code in the GameStack... stack, and started building the title screen code 2011-06-28 21:38:18 -04:00
9961d177fd removed now unnecessary class, renamed project 2011-06-28 21:21:31 -04:00
2bddf92001 Folded sdlrenderer code into Game(), since we'll be doing rendering on a per-state basis 2011-06-27 22:35:52 -04:00
5522cbc64c Refactored code heavily to be able to use a state stack - main function now does the basic init, looping, and shutdown, and each state is a pointer to an object that has its own event handling, rendering, etc 2011-06-27 22:07:52 -04:00
6560b1c28b Increase portability as per SDL standards, add a window title 2011-06-24 09:53:44 -04:00
837b3466a5 Refactored all the rendering code into its own class 2011-06-24 09:40:13 -04:00
5ed05fc829 Separated game-specific graph behavior into a subclass, implemented 2 players alternating turns 2011-06-23 17:28:49 -04:00
54b46d77d2 Factored distance calculation into separate utility class 2011-06-23 12:07:45 -04:00
994cd3208a Added some files we forgot to track 2011-06-23 09:38:15 -04:00