Commit Graph

145 Commits

Author SHA1 Message Date
Stephen McQuay ff3f9a5137 changed the stats payload
As it turns out there are other citizens of this world, not just the botclient.
So I have properly labeled the payload with a type. This makes the web
front-end less breaky.
2014-01-23 23:00:45 -08:00
Stephen McQuay 7bb5ae59b3 send the client calculated values for stats 2014-01-23 21:11:13 -08:00
Stephen McQuay c6c45ace51 cleaned up some logging 2014-01-23 21:09:27 -08:00
Stephen McQuay d3070ad501 send the client max points for the game 2014-01-22 22:14:22 -08:00
Stephen McQuay a57903d81c added tests for last commit (ProbeResult.Type) 2014-01-16 23:45:17 -08:00
Stephen McQuay 714ea669d2 added probe result type 2014-01-16 23:04:49 -08:00
Stephen McQuay a755d28688 parity to formatting 2014-01-16 22:33:03 -08:00
Stephen McQuay 7971198c17 Fixed collision detection in probes
This was a problem before when the probe hit an object that was further than
another object first. Now we traverse all objects all the time to find the
closest one. \o/
2014-01-16 00:56:35 -08:00
Fraser Graham 72d5a1a64c stats stats stats stats 2014-01-16 00:13:02 -08:00
Fraser Graham 3fa53daadb rewrite of the stats system 2014-01-16 00:02:59 -08:00
Fraser Graham 90b7731865 allow the control interface to specify game type 2014-01-15 22:16:06 -08:00
Fraser Graham 9583de2ffa game types, deathmatch and melee 2014-01-15 21:41:40 -08:00
Stephen McQuay 845db00032 added file line numbers to the logs 2014-01-13 20:54:01 -08:00
Stephen McQuay 10373d06d2 update for api change in vector 2014-01-07 21:21:16 -08:00
Stephen McQuay cf3c7e8629 Merge branch 'point-limit' 2014-01-05 19:46:53 -08:00
Stephen McQuay 3bb710dd9c point limit parametrized 2013-11-29 01:10:49 -07:00
Fraser Graham 33aea792ed allow probes while repairing and scanning 2013-11-27 20:33:57 -08:00
Fraser Graham ffbd656bc7 stop firing 2013-11-27 08:55:51 -08:00
Fraser Graham 83f5d51bc4 min damage from collisions 2013-11-27 08:39:36 -08:00
Fraser Graham f6c8399699 changes to collision response and player to player collision 2013-11-26 22:35:09 -08:00
Fraser Graham 34b8ec045f start using new poly intersection against buildings 2013-11-26 21:41:21 -08:00
Fraser Graham b702afeb3a renaming rect to AABB 2013-11-24 14:26:40 -08:00
Fraser Graham 9ca442f10d stop sending all data to dead robots 2013-11-18 22:49:05 -08:00
Stephen McQuay 4eb849a63f fixed resetart error vis-a-vis obstacles 2013-11-18 08:52:59 -08:00
Fraser Graham cacb8b547d :( compile code before committing Fraser 2013-11-17 08:23:11 -08:00
Fraser Graham 4c4c0d4e67 objects have HP now, only direct hits hurt them 2013-11-17 08:21:36 -08:00
Fraser Graham ae9d09596c prevent flipping between scan and repair for infinite awesomeness 2013-11-17 08:21:13 -08:00
Fraser Graham c9f0fb08bb removing unused field in boardstate 2013-11-16 23:16:12 -08:00
Fraser Graham 58c084c7ab bandwidth reduction, filtering explosions and sending objects as [4]int 2013-11-16 23:13:03 -08:00
Stephen McQuay 5a2651d0dd allow object specification 2013-11-16 19:57:13 -08:00
Stephen McQuay f6b3027ded minor: changed some logging 2013-11-16 18:56:15 -08:00
Stephen McQuay 4e55fa8ebe trim the hashes
I tried taking it down to 6, but it fails the tests consistently ...
2013-11-15 23:20:22 -08:00
Stephen McQuay f8fb523a76 fixed some httpstatu.es 2013-11-15 08:54:52 -08:00
Stephen McQuay 50868809bd revert me: default to allowing connecting players to start games 2013-11-14 00:18:46 -08:00
Stephen McQuay 2cbef76a37 cap healing health 2013-11-14 00:16:08 -08:00
Stephen McQuay 527042daa8 added logging for inability to kill 2013-11-14 00:02:26 -08:00
Stephen McQuay 2e774285ba quieted things down slightly (logging) 2013-11-13 23:47:42 -08:00
Stephen McQuay 245c483f9e added simple game stats 2013-11-13 23:45:02 -08:00
Stephen McQuay 84ed6c9c32 added gameover packet 2013-11-13 22:24:54 -08:00
Stephen McQuay aabda1cc90 added config file support 2013-11-13 20:38:57 -08:00
Fraser Graham c7d5e4be87 support setting heading in instructions 2013-11-11 21:36:11 -08:00
Fraser Graham 3f40fe4603 put point limit back to normal 2013-11-11 20:31:46 -08:00
Stephen McQuay 674cda293f renamed function to match go convention 2013-11-09 22:05:37 -08:00
Stephen McQuay da26e1ca46 simplified some loops
These changes were done by running the following command:

    gofmt -s -w *.go
2013-11-09 21:52:06 -08:00
Stephen McQuay bc2d1cdd52 minor tweaks, including go fmt 2013-11-09 21:46:49 -08:00
Fraser Graham d3c08a7953 move robot code into robot file 2013-11-09 19:52:40 -08:00
Fraser Graham 9de2b51f46 fixed naming 2013-11-08 22:59:56 -08:00
Fraser Graham 34f5d6876d Merge branch 'multibot'
Conflicts:
	game.go
2013-11-08 22:31:33 -08:00
Fraser Graham 570d8eea8e get multibots working 2013-11-08 22:26:56 -08:00
Fraser Graham e39a97089e First pass of multibot support 2013-11-08 21:25:42 -08:00