Commit Graph

85 Commits

Author SHA1 Message Date
Richard Harrington 23f18abdab add favicon placeholder 2022-08-01 10:13:09 -04:00
Richard Harrington c0e14b8334 made audio playing system so there's always a spare element to play 2013-09-10 21:32:00 -04:00
Richard Harrington 4f6957952d minor refactoring and cleanup in main.js 2013-09-10 20:29:22 -04:00
Richard Harrington b295e151da removed no longer needed constant from main.js 2013-09-10 20:29:10 -04:00
Richard Harrington c07ef23ab8 fixed the display offsets 2013-09-04 08:59:52 -04:00
Richard Harrington 7a9ac1fce2 got thehe text and arena animation to happen while the robots are loading 2013-09-03 21:59:37 -04:00
Richard Harrington 3124c1ab4b getting rid of the console-logging of the gameInfo 2013-09-03 21:06:19 -04:00
Richard Harrington fa7e132b71 made 'worlds' a local variable inside init, instead of global 2013-09-03 20:28:08 -04:00
Richard Harrington 1d9f712980 got rid of another print statement 2013-09-03 20:27:38 -04:00
Richard Harrington 8195340786 got front end to temporarily pause on empty queue, instead of exiting 2013-09-03 20:22:11 -04:00
Richard Harrington bcfd990872 got rid of print statement 2013-09-03 20:18:14 -04:00
Richard Harrington 222f4330e9 very minor whitespace changes 2013-09-03 20:17:56 -04:00
Richard Harrington 499602baa6 moved shell and shell-id to top level of world 2013-09-03 12:34:45 -04:00
Richard Harrington df99a934ba got some animation going for shell explosions and robot collision damage 2013-09-02 21:17:44 -04:00
Richard Harrington 537d31b99b loading gameInfo now from server, instead of hard-coding from browser 2013-08-30 00:03:43 -04:00
Richard Harrington 367aaa8c3f changed names from robotXMax to robotRangeX, on front end 2013-08-29 23:22:54 -04:00
Richard Harrington 7bd1bca8a8 replaced all robot display constants with dependencies on robot radius 2013-08-29 23:19:24 -04:00
Richard Harrington ae1faa667a added turret animation 2013-08-29 10:35:36 -04:00
Richard Harrington ec57b7941d changed gun length and robot radius 2013-08-29 10:35:19 -04:00
Richard Harrington a66e7d0a64 changed robot colors so green wouldn't clash with background 2013-08-24 09:37:49 -04:00
Richard Harrington af25b1a2db put in animation: instruction box gets swapped out for canvas upon user
input
2013-08-24 09:27:50 -04:00
Richard Harrington 6845fa51d8 now displaying names of available robots for user, on startup (changes to js and html) 2013-08-24 08:55:47 -04:00
Richard Harrington 4fe79afffd altered comment in main.js 2013-08-24 08:54:37 -04:00
Richard Harrington c50bdde525 various content, html and css changes 2013-08-24 08:54:01 -04:00
Richard Harrington aec6bf8eb6 moved worlds variable declaration to top of main.js 2013-08-24 08:52:38 -04:00
Richard Harrington 7720b273da capitalized the W in RobotWar. very important 2013-08-24 00:54:58 -04:00
Richard Harrington e05873121a centered, and made input text bigger 2013-08-24 00:51:02 -04:00
Richard Harrington c79673b405 got autofocus and blur on input going 2013-08-24 00:37:56 -04:00
Richard Harrington 3549079c96 changed text content again 2013-08-24 00:32:32 -04:00
Richard Harrington 6a729918b3 changed to green theme 2013-08-24 00:32:04 -04:00
Richard Harrington 446382ecfa added css styling and futuristic font 2013-08-24 00:30:34 -04:00
Richard Harrington ba8f25079e rearranged text and changed content in html 2013-08-24 00:02:40 -04:00
Richard Harrington 18c3e02084 user input now determines which robots battle 2013-08-24 00:02:09 -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 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 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 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 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 ba784981cd refactored main.js to hide more queue-specific stuff in Worlds 2013-08-21 17:29:29 -04:00
Richard Harrington 70c866189b refactored drawing of circles; added drawing of lines, and guns 2013-08-20 14:39:16 -04:00
Richard Harrington 09aea21988 changed name of draw function to drawWorld, main.js 2013-08-20 14:38:11 -04:00
Richard Harrington f6ce750299 refactored scaleFactorX & Y stuff into functions, in main.js 2013-08-20 14:36:54 -04:00