Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple 2D Snake Game using C++ and SFML.

License

NotificationsYou must be signed in to change notification settings

ufrshubham/2D-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple game created using C++ and SFML


  • Note: For cross platform build checkout branchcmake-build

What it looks like?

Demo

This game has multiple states

  • Main Menu State - Displays main menu
  • Game Play State - The actual game play
  • Pause Game State - Pause screen
  • Game Over State - Displays game over screen

Features

  • Snake can be controlled with arrow keys
  • Snake automatically advances 16px
  • Food gets randomly placed
  • Snake can eat food to grow in length
  • Each food increase player score by 1 point

Build Instructions

  • Requirements
    • C++ compiler
    • Make
    • SFML lib
  • Just run make command to generate the executable

About

A simple 2D Snake Game using C++ and SFML.

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp