Skip to content

Instantly share code, notes, and snippets.

(defn rotate_puyos
"Rotates tiles around center"
[& {:keys [tiles center] :or {center [0 0]}}]
(implementacion))
(def puyo_block
{:behaviours {[:framework/listens ::game_events/user-command ::game_events/rotate_right] [:transforms/rotate_right]
[:framework/listens ::game_events/user-command ::game_events/rotate_left] [:transforms/rotate_left]
[:framework/listens ::game_events/gravity-tick] [:transforms/puyo_down]}
:transforms {[:transforms/rotate_right] rotate_puyos}})