Skip to content

Java implementation of the popular SnakeGame, but with tacos.

Notifications You must be signed in to change notification settings

efrainceh/SnakeGame

Repository files navigation

Snake and Tacos

Java implementation of the popular SnakeGame, with tacos! A single player can play Adventure mode or versus a NPC. There is also the option for two players to go against one another and three speed settings.

Installation

Download all files and run Main.java

How to Use

Snakes are controlled with the keyboard.

  • Player 1: UP, DOWN, LEFT, and RIGHT keys
  • Player 2: W, S, A, and D keys

Game

Mode Panel

  • One Player: Normal mode where the player can continue to eat tacos and grow until there's a clash.
  • Two Player: As for One player, but with two snakes controlled by different keys.
  • Adventure: One player moves along five different maps of increased difficulty. Player moves to next map after 20 tacos.
  • NPC: The NPC mode can only be added for the One Player mode. The NPC uses Dijkstra's algorithm to find the shortest path to the taco, and it moves at half the speed - otherwise it is basically unbeatable.

mode_panel

Speed Panel

  • Turtle: 4 fbs
  • Snake: 6 fbs
  • Falcon: 12 fbs

speed_panel

Adventure Maps

level_1 level_2 level_3 level_4 level_5

About

Java implementation of the popular SnakeGame, but with tacos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages