Skip to content
/ cobra Public

Snake game written in C - animations, retro menu, smart snake enemies, sound effects.

License

Notifications You must be signed in to change notification settings

engjango/cobra

Repository files navigation

🐍 Cobra: A Retro Snake Game in C

GitHub stars GitHub forks GitHub release

🎮 Game Overview

Cobra is an immersive snake game for Linux, crafted with passion and C programming prowess. Experience a nostalgic journey through retro-style gameplay with innovative features that set it apart from traditional snake games.

Main Menu Screenshot

✨ Standout Features

🚀 Cutting-Edge Gameplay

  • Animated Intro: Stunning ASCII Art animation
  • Retro Menu Design: Nostalgic user interface
  • Intelligent Enemies: A* algorithm for "smart" snake opponents
  • Dynamic Obstacles: Challenging game environment
  • Immersive Sound Effects: Bass library audio integration

🔜 Coming Soon

  • Leaderboard/Records System
  • Customization Options
  • Comprehensive Help Menu

🛠 Installation Guide

Prerequisites

  • Linux (Tested on Ubuntu)
  • Git
  • Basic development tools
  • GCC Compiler

1. Clone the Repository

git clone https://github.com/lavradodosilicio/cobra.git
cd cobra

2. Install Dependencies

A* Library

For x86 machines:

sudo dpkg -i lib/libastar0_0.9-2_i386.deb

For x64 machines:

sudo dpkg -i lib/libastar0_0.9-1_amd64.deb

BASS Library

sudo cp lib/libbass.so /usr/local/lib
sudo chmod a+rx /usr/local/lib/libbass.so
sudo ldconfig

🎮 How to Play

Controls

  • ⬆️⬇️⬅️➡️: Navigate snake or menu
  • Space: Pause game
  • Enter: Select menu option

🖼 Gameplay Screenshots

Intro Screen Gameplay Animation Game Scene

🚀 Quick Start

cd cobra
make
./cobra

📦 Dependencies

  • libastar (Version 0.9)
  • bass (Latest version)

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contribution Guidelines

  • Follow existing code style
  • Write clear, commented code
  • Include tests for new features
  • Update documentation

🐛 Reporting Issues

Found a bug? Please open an issue with:

  • Detailed description
  • Steps to reproduce
  • Your environment details

🌟 Show Your Support

Give a ⭐ if you enjoyed the game!

📄 License

MIT License

📞 Contact

🏆 Acknowledgments

  • A* Library by Alexios.
  • BASS Library by UN4SEE.

About

Snake game written in C - animations, retro menu, smart snake enemies, sound effects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published