Skip to content

Ekansh38/snake_push_block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake_push_block

A snake game with block-pushing mechanics, built with C and SDL3.

A noice hand crafted sloppy code by yours truly...

images

imag4 image1 Screenshot 2026-06-16 at 5 56 39 PM

Build from Source

Dependencies

macOS

brew install sdl3 sdl3_image sdl3_ttf

On Apple Silicon Macs, you may need to add these to your ~/.zshrc so the compiler can find Homebrew libraries:

export CPATH=/opt/homebrew/include:$CPATH
export LIBRARY_PATH=/opt/homebrew/lib:$LIBRARY_PATH

Linux (Debian/Ubuntu)

sudo apt install libsdl3-dev libsdl3-image-dev

Windows

Download SDL3 development libraries from the SDL releases page and add them to your compiler's include/lib paths.

Build & Run

make
./game

Controls

WASD - to control the snake.

Arrow keys - on homepage to switch level.

Esc - while playing to pause.

Other:

when you collide with a block, press that direction again to push the block.

AI USE

  • I used AI to help make a release for MacOs with Claude code.

  • It was also late before the deadline so I used Claude code to help with level 4. (I am sure you can tell 😭)

  • everything else was done by me! (first time using SDL3, was fun!)

About

A fun snake & Sokoban action/puzzle game in C and SDL3

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors