Commit Graph

355 Commits

Author SHA1 Message Date
Richard Harrington
18c3e02084 user input now determines which robots battle 2013-08-24 00:02:09 -04:00
Richard Harrington
29ba6d0700 changed names of programs (to be shorter and easier to type in requests) 2013-08-24 00:01:06 -04:00
Richard Harrington
8012bbb138 changed t physics module to use Java Math/toRadians function 2013-08-23 11:03:47 -04:00
Richard Harrington
cc1dee5418 changed robot acceleration calc to use Java Math/copySign function 2013-08-23 10:53:33 -04:00
Richard Harrington
0945151aab changed all float coercion to double coercion 2013-08-23 10:51:56 -04:00
Richard Harrington
8b9b11d803 took out coments 2013-08-23 10:21:18 -04:00
Richard Harrington
c385631f34 got bullet sounds working. pretty hacky. 2013-08-23 01:15:38 -04:00
Richard Harrington
102a307af8 changed shells to a map-indexed system, for identifying new ones
(so far, we can't play the same sound at the same time
anyway, so this change has no visible effect yet)
2013-08-22 15:25:36 -04:00
Richard Harrington
1511a41670 changed the source code situation to be 2 shooters and 2 movers 2013-08-22 14:50:27 -04:00
Richard Harrington
7d1ac4cfe2 refactored main.js in preparation for getting GAME_INFO from the server, instead of it being local constants 2013-08-22 12:46:42 -04:00
Richard Harrington
4505b279f9 fixed degree conversion to account for robotwar coordinate system 2013-08-22 12:30:22 -04:00
Richard Harrington
2d34d012e2 hid the deg-rad conversion on the front end also 2013-08-22 11:58:37 -04:00
Richard Harrington
63fd4c157d hid the deg->rad conversion inside the angle decompose function 2013-08-22 11:24:33 -04:00
Richard Harrington
e2baa8e29d changed names & logic from 'canvas' to 'animation' because it includes sound now 2013-08-22 11:13:06 -04:00
Richard Harrington
5753b593a2 changed to drawing shells first each frame, before robots 2013-08-22 11:04:36 -04:00
Richard Harrington
9b49d3dd60 changed robot shot time, for easier testing 2013-08-22 01:55:17 -04:00
Richard Harrington
dbf2ea20cc implemented shot sound when robot fires its gun 2013-08-22 01:54:56 -04:00
Richard Harrington
acaf22d46c added a bunch of ogg and mp3 blaster noises 2013-08-22 01:49:41 -04:00
Richard Harrington
b942978bd2 increased worlds buffer size, to browser 2013-08-21 22:10:45 -04:00
Richard Harrington
b27f1212a1 got rid of comment 2013-08-21 22:10:25 -04:00
Richard Harrington
3ee19087e1 fixed equality error causing shells to sometimes proliferate out of control 2013-08-21 21:59:30 -04:00
Richard Harrington
0ee2637024 got shells (mostly) working 2013-08-21 21:47:52 -04:00
Richard Harrington
0d5f3838ac altered shooter source code to not use random numbers 2013-08-21 21:47:07 -04:00
Richard Harrington
0c4ad24a9b removed comment in shooter source code 2013-08-21 21:46:47 -04:00
Richard Harrington
3ff18fb289 changed shell constants 2013-08-21 21:46:14 -04:00
Richard Harrington
5a5fb86359 added support for shells to tick-combined-world 2013-08-21 20:36:57 -04:00
Richard Harrington
12e80d2379 added tick-shell function 2013-08-21 20:27:48 -04:00
Richard Harrington
17f913820a Merge branch 'shell' 2013-08-21 19:33:30 -04:00
Richard Harrington
52fe0ba01d Merge branch 'master' into shell 2013-08-21 19:33:13 -04:00
Richard Harrington
1cb3d98701 added new shooter program; commented out because writing to SHOT not working 2013-08-21 19:33:01 -04:00
Richard Harrington
4c90966445 fixed merge conflict 2013-08-21 19:23:18 -04:00
Richard Harrington
4993d9a450 fixed bugs in World refactoring, in main.js 2013-08-21 19:18:29 -04:00
Richard Harrington
6546f18249 Merge branch 'frontend' 2013-08-21 17:30:37 -04:00
Richard Harrington
ba784981cd refactored main.js to hide more queue-specific stuff in Worlds 2013-08-21 17:29:29 -04:00
Richard Harrington
7afb653f38 changed namespace phys to physics 2013-08-21 13:23:49 -04:00
Richard Harrington
faee52fcd8 moved trig functions from shell into phys namespace 2013-08-21 13:19:21 -04:00
Richard Harrington
1a5b3e3727 separated out tick-robot code into helper functions: move-robot and update-shot-timer 2013-08-21 13:12:42 -04:00
Richard Harrington
36ea96826f changed 'step-' named functions to 'tick-' 2013-08-21 11:11:16 -04:00
Richard Harrington
8d0996bec6 moved physics formulas from robot into their own namespace 2013-08-21 10:29:44 -04:00
Richard Harrington
6be9e599e1 added firing of new shells to SHOT write-register function 2013-08-20 23:40:54 -04:00
Richard Harrington
206f44ed9e added shell module, with some trig functions 2013-08-20 23:22:07 -04:00
Richard Harrington
a632b53817 added SHELL_SPEED constant 2013-08-20 23:21:45 -04:00
Richard Harrington
63ff5c8e05 refactored 'register' to do a lot more destructuring of registers and robots passed as parameters 2013-08-20 17:45:37 -04:00
Richard Harrington
61dcd040ad got the shot timer counting down 2013-08-20 17:30:37 -04:00
Richard Harrington
ad24b7e850 added SHOT register and :shot-timer robot field.
:shot-timer does not count down yet, and SHOT register
does not release shells.
2013-08-20 17:01:42 -04:00
Richard Harrington
a32a83d24f refactored register to be able to use mixins separate from their
map keys
2013-08-20 16:02:48 -04:00
Richard Harrington
c38f82d22e moved single-use read- and write-register functions directly into the extend protocol blocks as anonymous functions 2013-08-20 15:05:03 -04:00
Richard Harrington
163ba2840b altered indentatin in register 2013-08-20 15:03:34 -04:00
Richard Harrington
07596d8fad refactored 'register' with path-to-robot-field convenience function 2013-08-20 14:57:53 -04:00
Richard Harrington
70c866189b refactored drawing of circles; added drawing of lines, and guns 2013-08-20 14:39:16 -04:00