Commit Graph

80 Commits

Author SHA1 Message Date
6560b1c28b Increase portability as per SDL standards, add a window title 2011-06-24 09:53:44 -04:00
718941eacd Quit on Ctrl-Q 2011-06-24 09:48:59 -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
b967542157 Support different colours for different vertices 2011-06-23 15:10:40 -04:00
9d36120f6d Fixed a compile bug, general code cleanup 2011-06-23 14:42:07 -04:00
00d2efa31f Added some notes on draw_circle_filled 2011-06-23 14:34:53 -04:00
a9bd00f37d Added code to prevent edges from crossing 2011-06-23 13:54:28 -04:00
fc71203220 Use vertex's individual radius for all relevant calculations 2011-06-23 12:46:32 -04:00
4b1947fe44 simple comment update 2011-06-23 12:37:43 -04:00
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. 2011-06-23 12:36:40 -04:00
54b46d77d2 Factored distance calculation into separate utility class 2011-06-23 12:07:45 -04:00
d8e97ff0c9 Draw nodes with draw_circle_filled, eliminate node texture 2011-06-23 10:10:07 -04:00
ef2c6bc89f Clean up move_template stuff, move selection circle behind everything else 2011-06-23 10:04:14 -04:00
994cd3208a Added some files we forgot to track 2011-06-23 09:38:15 -04:00
a60ad393e9 DrawUtils circle now fills, but alpha is a problem, since we're blending 1800 rectangles on each other 2011-06-23 00:09:34 -04:00
b5e385586d Replaced move_template with procedural circle primitive - but it won't fill or alphatize yet. 2011-06-22 23:52:22 -04:00
ecb16a4b5c Moved distance limiting code to a smarter location, refactored related code 2011-06-22 23:06:23 -04:00
1606dfb058 Fixed bug with distance calculations... distance <> slope 2011-06-22 22:47:56 -04:00
5b53e0b115 Fixed bugs with the move template 2011-06-22 22:39:37 -04:00
48c45c2191 Code for some of the basic game design - selecting existing nodes, limiting edge distance 2011-06-22 22:32:33 -04:00
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 2011-06-22 21:54:35 -04:00
bbae7690f4 Cleaned up node image 2011-06-22 18:27:26 -04:00
fc8a76c1db Added transparency to nodes 2011-06-22 18:24:20 -04:00
fc08adcade First implementation of game logic and control 2011-06-22 17:57:44 -04:00
2aadb9ad7e Added image files 2011-06-22 17:57:21 -04:00
23add868d6 Added a graph class for representing and manipulating the game data 2011-06-22 17:29:41 -04:00
b2a371e804 Added some surfaces 2011-06-22 16:43:23 -04:00
9691974629 Added function to draw a straight line 2011-06-22 16:42:54 -04:00
27c6f1e0b6 Fundamental framework for an SDL application 2011-06-22 16:12:22 -04:00