! Copyright (C) 2015 Sankaranarayanan Viswanathan.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays assocs byte-vectors formatting fry
-images images.loader kernel locals make math math.vectors
+USING: accessors arrays assocs byte-vectors formatting
+images images.loader kernel make math math.vectors
opengl.textures sequences ;
IN: snake-game.sprites
: background-texture ( -- assoc )
"background" "background.png" load-snake-texture 2array 1array ;
+
+: snake-textures ( -- assoc )
+ [
+ snake-head-textures %%
+ snake-body-textures %%
+ snake-tail-textures %%
+ food-texture %%
+ background-texture %%
+ ] H{ } make ;