Showing results for

line of sight

on www.redblobgames.com
redblobgames.com › x › 2217 vue pointerevents
Vue pointer events
...0}}; }, methods: { clamp(value, lo, hi) { if (value < lo) value = lo; if (value > hi) value = hi; return value; }, }, }); // Here's an example with <canvas...
redblobgames.com › articles › curved paths › making of.html
Making of: draggable handles
...function clamped(m, lo, hi) { return { get: function() { return m.get(); }, set: function(v) { m.set(Math.min(hi, Math.max(lo, v))); } }; } function...
redblobgames.com › making of › line drawing
Making of: Line drawing tutorial
...let t = this.t; function set(id, fmt, lo, hi) { d3.select(id).text(d3.format(fmt)(lerp(lo, hi, t))); } set("#lerp1", ".2f...
redblobgames.com › grids › line drawing
Line drawing on a grid
...This type of movement also allows putting walls on edges so that a wall could block line of sight or movement.
2.1 Orthogonal...
redblobgames.com › articles › visibility
2D Visibility
...plans to throw the grenade, making cabinets and tables block line of sight.
Implementation#
I have written a Haxe 3 implementation of this algorithm...
redblobgames.com › x › 2126 roguelike dev
2021 Summer Roguelike project
...I want stairs to be visible even if out of line of sight. They don’t move, so if you’ve seen them, you...
redblobgames.com › grids › hexagons
Hexagonal Grids
...and cons of “pointy top” and “flat top” hexagons[64]?
- Line of sight in a hex grid[65] with offset coordinates, splitting hexes into...
redblobgames.com › grids › hexagons › implementation.html
Implementation of Hex Grids
...found axial and cube to be faster than offset for line of sight, distance, and other algorithms, but slower than offset for displaying offset...