suchwow

A snake game in progress

Video · 1280 × 720 · 0:26 · 7.7 MB

Description

A snake game in progress, with the snake eating an apple and growing longer with each bite, demonstrating the classic 'eat to grow' mechanic.

Text in this meme

class_name Gameplay extends Node2D @onready var head = %Head as Head @onready var bounds: Bounds = %Bounds as Bounds @onready var spawner: Spawner = $Spawner as Spawner # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): if Input.is_action_pressed("ui_up"): move_dir = Vector2.UP # (0,-1) elif Input.is_action_pressed("ui_right"): move_dir = Vector2.RIGHT # (1,0)

Tags

More with #snake game

More with #eating apple