Coastline Run / DriftLoom racer attribution Upstream: Jake Gordon and contributors, javascript-racer Repository: https://github.com/jakesgordon/javascript-racer Pinned revision: 3e8a060b5900755db27f899612a74a77427c853e Source URLs: https://github.com/jakesgordon/javascript-racer/blob/3e8a060b5900755db27f899612a74a77427c853e/common.js https://github.com/jakesgordon/javascript-racer/blob/3e8a060b5900755db27f899612a74a77427c853e/v4.final.html Actual adapted portions: - common.js Util.project -> racer.mjs project: perspective camera subtraction, scale and screen coordinates. - common.js Render.polygon, Render.segment, rumbleWidth and laneMarkerWidth -> racer.mjs polygon and segment: trapezoidal road, shoulders and lane markings. - v4.final.html render -> racer.mjs draw: segment traversal, accumulating curve x/dx, near-plane/backface/hill culling, far-to-near scenery and traffic clipping. - v4.final.html addSegment/addRoad and common.js Util.easeIn/easeInOut -> racer-engine.mjs buildRoad: segmented road, quadratic curve entry and cosine curve exit/elevation. Modified for ES modules, fixed deterministic course, original palette, returned projection points, original traffic physics, bounded observations and turn-based optional model controls. No upstream driving AI or traffic steering imported. Asset audit: NO upstream images, sprite sheets, backgrounds, music, audio, fonts or third-party libraries redistributed. Upstream graphics/music have separate restrictions and are NOT covered by this import. All displayed cars, palms, mountains, sun, water and scenery are original procedural Canvas shapes. Upstream source license follows verbatim: Copyright (c) 2012, 2013, 2014, 2015, 2016 Jake Gordon and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ===============================================================================