Skip to content

Instantly share code, notes, and snippets.

@hiulit
hiulit / get_surrounding_tiles.gd
Last active February 19, 2024 17:46
Get the surrounding tiles from a given tile (in grid-based coordinates)
func get_surrounding_tiles(current_tile):
var surrounding_tiles = []
var target_tile
for y in 3:
for x in 3:
target_tile = current_tile + Vector2(x - 1, y - 1)
if current_tile == target_tile:
continue
@dabrahams
dabrahams / gist:3030332
Created July 2, 2012 01:10
My new, simpler offlineimap configuration
# -*- mode: conf; -*-
#
# NOTE: Settings generally support python interpolation. This means
# values can contain python format strings which refer to other values
# in the same section, or values in a special DEFAULT section. This
# allows you for example to use common settings for multiple accounts:
#
# [Repository Gmail1]
# trashfolder: %(gmailtrashfolder)s
#