Skip to content

ilkerozgedik/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple snake game built with HTML, CSS, and JavaScript.

How to Play

  • Use the arrow keys (Up, Down, Left, Right) to control the snake.
  • Eat the red food (●) to grow longer and increase your score.
  • Avoid hitting the walls or the snake's own body.
  • The game ends if you collide.
  • Press Enter to restart the game after a game over.

Features

  • Classic snake gameplay.
  • Score tracking.
  • High score saving (using browser localStorage).
  • Game over screen with restart option.
  • Basic visual styling for snake and food.

How to Run

Simply open the index.html file in your web browser.


Yılan Oyunu

HTML, CSS ve JavaScript ile oluşturulmuş basit bir yılan oyunu.

Nasıl Oynanır

  • Yılanı kontrol etmek için yön tuşlarını (Yukarı, Aşağı, Sol, Sağ) kullanın.
  • Uzanmak ve puanınızı artırmak için kırmızı yemi (●) yiyin.
  • Duvarlara veya yılanın kendi vücuduna çarpmaktan kaçının.
  • Çarpışırsanız oyun biter.
  • Oyun bittikten sonra oyunu yeniden başlatmak için Enter tuşuna basın.

Özellikler

  • Klasik yılan oyunu deneyimi.
  • Puan takibi.
  • Yüksek skor kaydetme (tarayıcı localStorage kullanarak).
  • Yeniden başlatma seçeneği ile oyun bitti ekranı.
  • Yılan ve yem için temel görsel stil.

Nasıl Çalıştırılır

index.html dosyasını web tarayıcınızda açmanız yeterlidir.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors