Skip to content

A minimal implementation of classic snake game, written entirely in Swift and rendered using Raylib.

Notifications You must be signed in to change notification settings

greebamax/swift-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Snake Game

A simple clone of the classic Snake game written in Swift using Raylib for graphics. Created for learning and experimenting with Swift game development on Linux.

Snake Game Screenshot


Getting Started

Requirements

  • Swift 6.1 or newer
  • Raylib (automatically installed via SwiftPM)

Build & Run

git clone https://github.com/greebamax/swift-snake-game
cd swift-snake-game
swift build
swift run

Note

If you're running on Linux, make sure required Raylib native libraries are available.

On Ubuntu:

sudo apt install libraylib-dev libglfw3-dev libopenal-dev libxi-dev libxcursor-dev libxinerama-dev libxrandr-dev

About

A minimal implementation of classic snake game, written entirely in Swift and rendered using Raylib.

Topics

Resources

Stars

Watchers

Forks

Languages