Skip to content

Geshina/Snake-Flowgorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

The classic snake game made in flowgorithm. Eat apples to get longer (max size = 6), dont hit the border or yourself

  • Leo - Project lead / Rendering
  • Valentino - Entities
  • Leon - Controls / Leaderboard

Controls < Leon

continously accept user input and provides the direction for the snake to go in. uses the control file to check for user innput

  • method for taking continious control
  • loop

Snake Move

process the control input into change of cordinates for snake

  • [ ]

Entities < Valentino

spawn apples at random cordinates and gamesteps.

  • function that returns int array with cordinates for apple
  • generate apples on every 8th step
  • check if snake cordinates == apples cordinates
  • keep track of score

Check Conditions

checks if the player has taken an apple or lost the game

  • [ ]

Rendering

a set of functions that print out the full game board. The board is stored as a string array acting as a 2d array

  • line by line rendering
  • board aspect ratio 12/24
  • snake rendering
  • paramterized
  • more utility functions
  • borders and UI
  • timestep + movement
  • optimisation ?

Initialization

Game stack

this is the sequence of events that happen inside the main game loop

  • Control Input
  • Snake Move
  • Spawn Apple
  • buffer
  • check conditions < check snake
  • render
  • timestep
  • leaderboard

About

snake game in made in the flowgorithm program for a school project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors