Skip to content

A terminal snake game based on the Go language mascot, the gopher.

Notifications You must be signed in to change notification settings

aljazst/gopher-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gopher snake

This is an attempt to make Go 2D snake game. It's my first project in Go, dedicated to learning the basics of the language. 🚧 In progress! 🚧

How it works

It's like a basic snake game. Use the arrow keys to move around. Press J for a new random position of the Gopher emoji. If you press the Esc key, the game will close.

How it looks currently

gopher_snake_current

Documentation

Pixel 2D game library

Pixel example game -> A lot of the logic is borrowed from this repo.

The Gopher spritesheet and the Gopher emojis (png images loose quality when shrinked and displaying in canvas, thats why the emojis don't look as good in the game) comes from the fantastic Egon Elbre.

Features roadmap

🚧 This project is a work in progress, some features are missing and they will arrive in the future (I guess), (Maybe), (I hope), (Ok, probably not).

  • ✅ Gopher dies when touching the border (The gophers position resets to the center)
  • ✅ When the Gopher touches a Gopher emoji it collects it and another emoji appears.
  • 🏗 When the emoji is collected it has to reappear behind the Gopher and follow him. (will be implemented in the future)
  • 🏗 When the Gopher touches one of the collected emojis its game over. (will be implemented in the future)
  • 💭 A leaderboard
  • 💭 A game menu

Legend:

  • ✅ Implemented
  • 💭 Not yet implemented, still in my mind!
  • 🏗 Working on it

My thoughts on Go

I like it. I like it a lot. I mean, I am still a rookie but I am eager to learn the language. But, I don't like game development. Some aspects of it just don't suit me. That's probably why the game will remain unfinished.

About

A terminal snake game based on the Go language mascot, the gopher.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages