Skip to content
/ snake Public

The Classic Game of Snake. This time with Bezier Curves

Notifications You must be signed in to change notification settings

xleph/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

A rather rudimentary game with a rather rudimentary twist

Setting Up Camp:

By Hand:

compile ssw

gcc -c ssw.c -o ssw.o -lX11

compile bezier.c

gcc -c bezier.c -o bezier.o

and last but not least:

gcc ssw.o bezier.o snake.c -o snake -lX11

Or Via Install Script:

chmod +x deploy && ./deploy

Enjoying:

There are a few known bugs:

Severe lag loading in bezier curves over 20 points long

The snake isn't exactly supposed to have a mouth

There are probably more I'm forgetting

What's Inside?

Not caramel/nougat/chocolates

A large portion of the code is my own spare the:

FISR() function

I stolen this from Quake III source code, but found a better magic constant

drawcurve():

Something out of a ongoing project of mine that I thought could be adapted here

About

The Classic Game of Snake. This time with Bezier Curves

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages