... | ... | @@ -50,7 +50,7 @@ Rendering your will require assets. Simple sprites like these can be made fairly |
|
|
|
|
|
Textures can be loaded with the line ```assetManager.load("<alias>", loadTexture(gl, "img/<filename>"));```
|
|
|
in the ```preload``` function. They can be retrieved again in ```create``` by calling ```assetManager.get("<alias>")```.
|
|
|
Assign your wall, body, head, and fruit textures to variables on your game class.
|
|
|
Assign your body, head, and fruit textures to variables on your game class.
|
|
|
|
|
|
Create a ```List``` of ```Vector2```s called ```snake``` in your game class.
|
|
|
Initialize it to contain a ```Vector2(2, 2)```.
|
... | ... | |