Skip to content

flk-hub/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game in Go

Welcome to my pet project: a classic Snake game implemented in Go! 🐍

Features

  • Classic Snake Gameplay: Control the snake to eat food, grow in length, and avoid collisions.
  • Simple Controls: Easy to play with intuitive keyboard controls.
  • Pure Go: Written entirely in Go using the raylib-go library.

Getting Started

Prerequisites

  • Go: Make sure you have Go installed. You can download it from golang.org.
  • raylib: You'll need the raylib library. Follow the instructions here to set it up.

Installation

  1. Clone this repository:

    git clone https://github.com/flk-hub/snake.git
    cd snake-go-game
  2. Install Go bindings for raylib:

    go get github.com/gen2brain/raylib-go/raylib
  3. Run the game:

    go run main.go

Controls

  • Arrow Keys: Control the snake's direction.
  • ESC: Quit the game.

Screenshot

image

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • raylib - For making game development in C and Go fun and easy!
  • raylib-go - Go bindings for raylib.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages