Mikael Säker il y a 8 ans
Parent
commit
09c4d5c0d4

+ 1 - 0
docs/assets/snake/archive_files.json

@@ -0,0 +1 @@
+{"content":[{"name":"game.projectc","size":231,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":768,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":6203,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":1202,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]}

BIN
docs/assets/snake/game.arcd0


BIN
docs/assets/snake/game.arci0


BIN
docs/assets/snake/game.dmanifest0


+ 20 - 0
docs/assets/snake/game.projectc0

@@ -0,0 +1,20 @@
+[project]
+title = Snake
+version = 0.1
+
+[bootstrap]
+main_collection = /main/main.collectionc
+
+[input]
+game_binding = /input/game.input_bindingc
+
+[display]
+width = 768
+height = 768
+
+[physics]
+scale = 0.02
+
+[script]
+shared_state = 1
+

BIN
docs/assets/snake/game.public.der0


BIN
docs/assets/snake/preview.jpg


BIN
docs/en/tutorials/images/snake/gui.png


BIN
docs/en/tutorials/images/snake/input.png


BIN
docs/en/tutorials/images/snake/main_collection.png


BIN
docs/en/tutorials/images/snake/tilemap.png


BIN
docs/en/tutorials/images/snake/tilesource.png


+ 11 - 0
docs/en/tutorials/snake.md

@@ -0,0 +1,11 @@
+---
+title: Building a snake game in Defold
+brief: If you are new to Defold, this guide will help you to get started with script logic together with a few of the building blocks in Defold.
+---
+
+# Snake
+
+This tutorial walks you through the process of creating one of the most common basic games that you can attempt, the snake game. There are a lot of variations on this game to be found. This one features a snake that eats "fruit", that only grows when it eats. The snake also crawls on a playfield that contains obstacles.
+
+Before beginning, take a minute and try the game:
+