Skip to content

Instantly share code, notes, and snippets.

@goblinJoel
goblinJoel / app.js
Last active February 28, 2024 22:13
LiveSelect test page
// We need to import the CSS so that webpack will load it.
// The MiniCssExtractPlugin is used to separate it out into
// its own CSS file.
import "../css/app.css"
// webpack automatically bundles all modules in your
// entry points. Those entry points can be configured
// in "webpack.config.js".
//
// Import deps with the dep name or local files with a relative path, for example:
@goblinJoel
goblinJoel / gridmap.gd
Last active May 21, 2022 00:06
Customized Godot Dijkstra map showing input_is_destination not affecting paths or directions
extends TileMap
var dijkstramap: DijkstraMap
var id_to_pos: Dictionary = {}
var pos_to_id: Dictionary = {}
var tile_draw: int = 0
var terrain_weights: Dictionary = {0: 1.0, 1: 4.0, 2: INF, 3: 1.0}
var dragging: bool = false