Commit Graph

161 Commits

Author SHA1 Message Date
Fraser Graham 776a7eee98 split splosions and projectiles into separate files 2013-10-20 20:54:19 -07:00
Fraser Graham 541e213c66 adding a sample JSON packet for reference 2013-10-19 21:05:38 -07:00
Fraser Graham fd13cb318a removed unecessary data from payload sent to the client and filter outgoing robot list by scanner contents for each player until they die 2013-10-19 17:29:40 -07:00
Fraser Graham f9b18eb253 Convert to 32-bit to save space in the serialization 2013-10-19 00:00:51 -07:00
Stephen McQuay c074397c1f bugfix for incorrect logic in game creation 2013-10-18 23:56:06 -07:00
Fraser Graham c80acb478b All sorts of fun stuff...
- stats are now based on a 1-100 ranged and mapped to sensibles
- turnspeed and fire rate are available stats
- bugs in movement are squished
2013-10-18 23:22:35 -07:00
Stephen McQuay d19b3f71fa added ability to autovivify games in debug mode 2013-10-18 20:49:57 -07:00
Fraser Graham 2edc7c61af fixing bug where heading can be 0 2013-10-18 20:40:09 -07:00
Fraser Graham e02c5f89fb make projectiles arrive at their destination regardless of tick time 2013-10-18 20:39:53 -07:00
Stephen McQuay f4e2e84676 added more logging to control requests 2013-10-14 00:17:12 -07:00
Stephen McQuay 158c7d90d8 fixed tick bombs 2013-10-01 21:37:53 -07:00
Stephen McQuay e06f70aed6 go fmt 2013-09-28 23:03:42 -07:00
Stephen McQuay bd4cb39828 added profiling flag and kill channel 2013-09-28 23:00:29 -07:00
Stephen McQuay 83da3961cd infinite melee!! 2013-09-28 13:19:44 -07:00
Stephen McQuay 56c965add7 some clean up
Mainly adding some comments, and some function renaming
2013-09-28 12:59:17 -07:00
Stephen McQuay c5bddcdc31 renamed the file housing the http control protocol, removed defunct test 2013-09-28 12:53:18 -07:00
Stephen McQuay 2a2f4f6f96 moved all negociation code into a single function 2013-09-28 12:37:23 -07:00
Stephen McQuay b142845b5c moved move out of vector lib 2013-09-28 09:44:47 -07:00
Stephen McQuay e33f2c0c4f moved code out of awkward bots repo 2013-09-27 22:27:05 -07:00
Fraser Graham 92a2040d70 Adding collisions and acceleration. Fixing splosions and projectiles. 2013-09-27 01:30:26 -07:00
Stephen McQuay 472e2011b9 logging and infinite melee 2013-09-27 00:03:32 -07:00
Stephen McQuay 13c0cd047b use user-provided name in /game/list/ output 2013-09-26 21:51:57 -07:00
Stephen McQuay f8378cf89b Got game working again
I just moved some old code into the game struct; probably still merits some
cleanup in the main loop.
2013-09-20 12:15:10 -06:00
Stephen McQuay f175e45c63 added simple, non-leaking game stop url 2013-09-08 09:32:24 -07:00
Stephen McQuay b7087adb78 reuse some slices 2013-09-07 19:13:12 -07:00
Stephen McQuay bf853880ca go fmt 2013-09-07 19:12:46 -07:00
Stephen McQuay f9b646e50c send back more information on /game/list/ 2013-09-05 23:31:24 -07:00
Stephen McQuay 45cc67a5f1 make it simple to track last time 2013-09-05 23:31:13 -07:00
Stephen McQuay 1ca4679b04 embedded the mutex into the games global (one fewer global) 2013-09-05 18:14:41 -07:00
Stephen McQuay c6b480fa1e removed goroutine leak 2013-09-04 23:36:45 -07:00
Stephen McQuay fb0e6d92d7 Sorted out extra load
turns out we were never exiting the loop even when all bots left. Games now
shut down when there ever has been bots and they all leave (or are killed,
I think).
2013-09-04 23:23:05 -07:00
Stephen McQuay 3e805d3da7 remove game from player struct 2013-09-04 00:08:43 -07:00
Stephen McQuay 64477f5e47 stray pointer conversion 2013-09-04 00:07:22 -07:00
Stephen McQuay 325a5c0f57 put more of game init in NewGame 2013-09-04 00:06:39 -07:00
Stephen McQuay 9bccf60abc make member a pointer for nil json 2013-09-04 00:05:38 -07:00
Stephen McQuay 0cc03e5768 removed unused struct 2013-09-04 00:04:28 -07:00
Stephen McQuay 33c08abbc5 forgot to git add 2013-09-03 23:35:42 -07:00
Stephen McQuay 38a7ea6805 moved geom to vector package 2013-09-03 23:32:36 -07:00
Stephen McQuay b495b16065 refactor for bot 2013-09-03 23:26:40 -07:00
Stephen McQuay 835303c53d middle of refactor 2013-09-01 23:00:09 -07:00
Stephen McQuay 0396b16425 need to have games track width/height 2013-09-01 22:04:34 -07:00
Stephen McQuay b800f77c24 added locking, listing 2013-09-01 22:04:10 -07:00
Stephen McQuay a1470c102a added startGame side band 2013-08-28 23:46:12 -07:00
Stephen McQuay aaaff34448 tests work for GOMAXPROCS>1 2013-08-28 22:16:55 -07:00
Stephen McQuay 922acbdb54 added a hash generator 2013-08-28 18:10:08 -07:00
Stephen McQuay 0512bb7664 added test for out of order conf, found bug that needs fixing 2013-08-26 23:09:39 -07:00
Stephen McQuay ad13aed9fd extra import 2013-08-26 23:03:24 -07:00
Stephen McQuay 1b29096479 pared down logging in favor of unittests 2013-08-26 23:02:41 -07:00
Stephen McQuay 63f6d1a2e0 added some protocol tests 2013-08-26 23:00:27 -07:00
Stephen McQuay 880d73b54e got simple testing server working 2013-08-25 23:10:02 -07:00