Commit Graph

  • 0c2e850c05 Added labels that display energy costs when building master Anna Wiggins 2011-07-07 18:10:05 -0400
  • 4e4cb561fc Forgot a couple necessary files Anna Wiggins 2011-07-06 17:56:37 -0400
  • 825a3f8e4a Some drastic refactoring to reduce complexity for buttons, but now all the primary buttons always look selected... Anna Wiggins 2011-07-06 17:25:12 -0400
  • 8a4ed42ab1 Added some code for disabling button visually, but it doesn't quite work Anna Wiggins 2011-07-06 16:47:34 -0400
  • eccc773457 Added a 'ghost node' so players can see where their new nodes will go, and fixed some bugs in the process Anna Wiggins 2011-07-06 16:17:30 -0400
  • 78409c80d7 Fixed the button areas being too large Anna Wiggins 2011-07-06 15:06:23 -0400
  • 735a9dfcef Vertices can now render themselves - not sure what to do about edges, right now game is still doing them Anna Wiggins 2011-07-06 14:52:45 -0400
  • 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 Anna Wiggins 2011-07-06 14:24:37 -0400
  • 12bbcb7f23 Made some tweaks to game balance Anna Wiggins 2011-07-05 22:28:46 -0400
  • 9ee2972612 Fixed a silly error - always good to return values we calculate Anna Wiggins 2011-07-05 22:15:52 -0400
  • ab82883a2e Added a TODO list, so I can remember what I wanted to add to this thing Anna Wiggins 2011-07-05 21:58:01 -0400
  • c235d79dac Added code to prevent attacking more than once per attacker per round Anna Wiggins 2011-07-04 03:09:36 -0400
  • 06902c4377 Prevent overlap/edge crosses when moving a vertex Anna Wiggins 2011-07-04 02:52:12 -0400
  • aa21bb9d39 Changed energy cost increase for producers, reworked menu buttons Anna Wiggins 2011-07-04 02:32:57 -0400
  • c2ecbf5c23 Moved buttons and info around Anna Wiggins 2011-07-04 02:23:20 -0400
  • 7d1ceb396b Improvements to button menu and keyboard controls Anna Wiggins 2011-07-04 02:00:43 -0400
  • 67cbd43740 Make end turn button appear in the right place Anna Wiggins 2011-07-04 01:40:02 -0400
  • 79740d3cee Implemented energy costs Anna Wiggins 2011-07-04 01:27:56 -0400
  • cfe5666c04 Added End Turn button so we can do multiple actions per round - this will be limited by energy shortly Anna Wiggins 2011-07-03 17:45:11 -0400
  • c5d6167e8c Refactored code to do dynamic_casts in fewer places Anna Wiggins 2011-07-03 16:57:47 -0400
  • ed6e0c2bf2 Moved font into the resource directory Anna Wiggins 2011-07-03 16:46:16 -0400
  • f90c60b6ac Refactored Vertex and GameVertex classes into their own files, put some functions in GameVertex that made sense there Anna Wiggins 2011-07-03 16:37:07 -0400
  • 8ad4ec0672 Added some basic differences between vertex types Anna Wiggins 2011-07-03 15:48:06 -0400
  • fc0c0f26fd Added ability to actually build different unit types, as well as icons to distinguish them Anna Wiggins 2011-07-03 15:16:00 -0400
  • 7744bad7c7 Implemented node movement Anna Wiggins 2011-07-03 10:38:56 -0400
  • 6085267cc4 Added menu buttons for building types of units Anna Wiggins 2011-07-03 10:26:46 -0400
  • 793d6bd9a2 Now the buttons actually do something - also added a build_type Anna Wiggins 2011-07-03 10:12:47 -0400
  • 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 Anna Wiggins 2011-07-02 17:34:11 -0400
  • c1ea399448 Added menu area at the bottom of the game screen Anna Wiggins 2011-07-01 23:47:24 -0400
  • 306f3d0c17 Start using dynamic_casts where appropriate, cleaned up some bugs Anna Wiggins 2011-07-01 23:24:41 -0400
  • 2bdc7e0e59 Change text over nodes to just be hit points Anna Wiggins 2011-07-01 22:23:16 -0400
  • a2f36a447b Created GameVertex class so that we can store game-specific data in the vertices Anna Wiggins 2011-07-01 22:04:58 -0400
  • e221f1990c Added player names and some debug stuff Anna Wiggins 2011-07-01 20:00:19 -0400
  • bf151a928a Continuing to refactor code to make room for larger features. Currently, attacking doesn't work Anna Wiggins 2011-07-01 18:23:01 -0400
  • c49fdb8169 Added display showing information about selected vertex Anna Wiggins 2011-07-01 18:04:15 -0400
  • d15e6590ec Added code for drawing a circle around selected vertex Anna Wiggins 2011-07-01 17:44:43 -0400
  • 7fd7f90770 Fixed the selection bugs Anna Wiggins 2011-07-01 14:39:45 -0400
  • 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...) Anna Wiggins 2011-07-01 14:10:45 -0400
  • d1c11799f4 Added some new files left out of last commit Anna Wiggins 2011-07-01 13:24:02 -0400
  • 938e75716c Implemented font framework, print info about each vertex Anna Wiggins 2011-07-01 13:15:30 -0400
  • 36414a6996 Put framework in place for dealing with graphs in 3 dimensions Anna Wiggins 2011-07-01 12:24:52 -0400
  • 7b4b3ba76e Fixed the one-node tree bug Anna Wiggins 2011-07-01 11:48:49 -0400
  • ec2b513fe5 We don't need much, so drop the framerate to make the game eat almost no CPU Anna Wiggins 2011-07-01 11:43:19 -0400
  • b31a3e26ab Added some performance boosting framerate regulation Anna Wiggins 2011-07-01 11:40:38 -0400
  • b50ed649f5 Reworked initting code so new states get initted properly in main loop Anna Wiggins 2011-07-01 11:16:41 -0400
  • 303f1d4511 Make title banner transpare Anna Wiggins 2011-06-30 18:16:36 -0400
  • ca60c61ce6 Implemented and integrated title screen - now game crashes at launch, though Anna Wiggins 2011-06-30 17:21:46 -0400
  • d2322a7caf Made some adjustments to the game's ranging Anna Wiggins 2011-06-28 22:27:33 -0400
  • 8550b0f8f1 Cleaned up some debugging code Anna Wiggins 2011-06-28 22:14:55 -0400
  • 7e17865c2a Implemented TitleScreen::init() Anna Wiggins 2011-06-28 21:44:28 -0400
  • 6a4b1c4cf2 Refactored a wee bit of code in the GameStack... stack, and started building the title screen code Anna Wiggins 2011-06-28 21:38:18 -0400
  • 9961d177fd removed now unnecessary class, renamed project Anna Wiggins 2011-06-28 21:21:31 -0400
  • a40773d8b0 Fixed crash when removing vertex Anna Wiggins 2011-06-27 23:05:14 -0400
  • 2bddf92001 Folded sdlrenderer code into Game(), since we'll be doing rendering on a per-state basis Anna Wiggins 2011-06-27 22:35:52 -0400
  • 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 Anna Wiggins 2011-06-27 22:07:52 -0400
  • a77a8575c5 Fixed crash on vertex_remove Anna Wiggins 2011-06-27 20:37:46 -0400
  • 39db9b6c12 edge collision now works again Anna Wiggins 2011-06-27 20:32:29 -0400
  • 07fc8c67c1 Removed the concept of edges in favor of a proper tree-style approach, with each vertex knowing about its neighbors. This seems to have broken both Grah::crosses_edge() and Graph::remove_vertex. and the move radius circle doesn't draw any more. Go team. Anna Wiggins 2011-06-27 18:10:24 -0400
  • ed0d8c5e26 Added debug statements for endgame Anna Wiggins 2011-06-24 22:36:42 -0400
  • ed46a272b8 Left some important files out of the repo Anna Wiggins 2011-06-24 21:55:43 -0400
  • 4d5770006c attacking now fully works - not terribly happy with the range of attack ranges though Anna Wiggins 2011-06-24 15:06:52 -0400
  • 6aedad51e5 Most of the attack functionality now in place, but it's not all quite working yet Anna Wiggins 2011-06-24 14:59:18 -0400
  • e51a328641 More implementation for attacking Anna Wiggins 2011-06-24 12:18:52 -0400
  • 931ced321a Let gamedata store information about whether we are attacking or moving Anna Wiggins 2011-06-24 12:02:53 -0400
  • a71ab74a9c Fixed strength calculation, yay Anna Wiggins 2011-06-24 11:37:56 -0400
  • 1a555b900c Split calculate_strength into a recursive and non-recursive portion - saves a lot of special checking Anna Wiggins 2011-06-24 11:32:50 -0400
  • 81028d7070 Use floats for strength calculations s. This has the amusing problem of making everything after the first node 'inf' Anna Wiggins 2011-06-24 11:06:26 -0400
  • 977322d4ee First stab at the calculate_strength() function - all it nets us is a floating point exception when compiling with -DDEBUG Anna Wiggins 2011-06-24 11:03:40 -0400
  • 5205b9dfab Forgot to test compilation, made it happen... Anna Wiggins 2011-06-24 10:19:41 -0400
  • 3a3132e44a added a score value and some docs to Graph class Anna Wiggins 2011-06-24 10:18:31 -0400
  • 6560b1c28b Increase portability as per SDL standards, add a window title Anna Wiggins 2011-06-24 09:53:44 -0400
  • 718941eacd Quit on Ctrl-Q Anna Wiggins 2011-06-24 09:48:59 -0400
  • 837b3466a5 Refactored all the rendering code into its own class Anna Wiggins 2011-06-24 09:40:13 -0400
  • 5ed05fc829 Separated game-specific graph behavior into a subclass, implemented 2 players alternating turns Anna Wiggins 2011-06-23 17:28:49 -0400
  • b967542157 Support different colours for different vertices Anna Wiggins 2011-06-23 15:10:40 -0400
  • 9d36120f6d Fixed a compile bug, general code cleanup Anna Wiggins 2011-06-23 14:42:07 -0400
  • 00d2efa31f Added some notes on draw_circle_filled Anna Wiggins 2011-06-23 14:34:53 -0400
  • a9bd00f37d Added code to prevent edges from crossing Anna Wiggins 2011-06-23 13:54:28 -0400
  • fc71203220 Use vertex's individual radius for all relevant calculations Anna Wiggins 2011-06-23 12:46:32 -0400
  • 4b1947fe44 simple comment update Anna Wiggins 2011-06-23 12:37:43 -0400
  • d76fc8099e Major refactoring - moved constants around, made graph class more graphy, put things where they belong. Simplified a lot of code that I wrote when I wasn't thinking clearly, apparently. Anna Wiggins 2011-06-23 12:36:40 -0400
  • 54b46d77d2 Factored distance calculation into separate utility class Anna Wiggins 2011-06-23 12:07:45 -0400
  • d8e97ff0c9 Draw nodes with draw_circle_filled, eliminate node texture Anna Wiggins 2011-06-23 10:10:07 -0400
  • ef2c6bc89f Clean up move_template stuff, move selection circle behind everything else Anna Wiggins 2011-06-23 10:04:14 -0400
  • 994cd3208a Added some files we forgot to track Anna Wiggins 2011-06-23 09:38:15 -0400
  • a60ad393e9 DrawUtils circle now fills, but alpha is a problem, since we're blending 1800 rectangles on each other Anna Wiggins 2011-06-23 00:09:34 -0400
  • b5e385586d Replaced move_template with procedural circle primitive - but it won't fill or alphatize yet. Anna Wiggins 2011-06-22 23:52:22 -0400
  • ecb16a4b5c Moved distance limiting code to a smarter location, refactored related code Anna Wiggins 2011-06-22 23:06:23 -0400
  • 1606dfb058 Fixed bug with distance calculations... distance <> slope Anna Wiggins 2011-06-22 22:47:56 -0400
  • 5b53e0b115 Fixed bugs with the move template Anna Wiggins 2011-06-22 22:39:37 -0400
  • 48c45c2191 Code for some of the basic game design - selecting existing nodes, limiting edge distance Anna Wiggins 2011-06-22 22:32:33 -0400
  • 53f1560393 Fixed first vertex bug, use pointers to track vertices (in case we want to move them easily later), and added a formula for vertex distance calculations Anna Wiggins 2011-06-22 21:54:35 -0400
  • bbae7690f4 Cleaned up node image Anna Wiggins 2011-06-22 18:27:26 -0400
  • fc8a76c1db Added transparency to nodes Anna Wiggins 2011-06-22 18:24:20 -0400
  • fc08adcade First implementation of game logic and control Anna Wiggins 2011-06-22 17:57:44 -0400
  • 2aadb9ad7e Added image files Anna Wiggins 2011-06-22 17:57:21 -0400
  • 23add868d6 Added a graph class for representing and manipulating the game data Anna Wiggins 2011-06-22 17:29:41 -0400
  • b2a371e804 Added some surfaces Anna Wiggins 2011-06-22 16:43:23 -0400
  • 9691974629 Added function to draw a straight line Anna Wiggins 2011-06-22 16:42:54 -0400
  • 27c6f1e0b6 Fundamental framework for an SDL application Anna Wiggins 2011-06-22 16:12:22 -0400