Skip to content

Instantly share code, notes, and snippets.

View Xrayez's full-sized avatar
🔱
Ukraine is winning

Andrii Doroshenko Xrayez

🔱
Ukraine is winning
View GitHub Profile
@Xrayez
Xrayez / hide_unless_hover.css
Created January 23, 2018 11:43
CSS style for hiding graphical content
/* Hides most graphical content by default unless you need to see it.
/* NOTE: can be used in Stylish as a theme */
/* Hide some of the annoying background images (but not all...) */
table div {
background-image: none !important;
}
/* Hide any element that has `src` attribute (images, youtube videos, thumbnails, etc) */
/* May hide control elements like buttons, but they will be visible by an outline */
@Xrayez
Xrayez / StateRecorder.gd
Created December 10, 2017 11:03
State recorder using AnimationPlayer in Godot
# This is a prototype of the state recorder that can be used in a replay system
extends AnimationPlayer
var nodes = []
var animations = {}
var properties = ["global_position", "global_rotation"]
func _init():
set_name("state_recorder")