Skip to content

cschuijt42/so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

so_long

The objective for so_long is to create a small 2D game where the player moves through a maze read from a file, grabbing collectibles and making it to the exit.

Checklist of doom:

  • File handling and ingress
  • Map validation
    • Ensure map meets subject criteria
    • Ensure map is solvable
  • Set up sprite intake
  • Determine what to draw where
  • Pick sprites based on surroundings and categories
    • Walls
    • Lava
    • Pillars
    • Floors
    • Shadows
    • Additional walls
  • Set up rendering
  • Animate stuff
    • Characters
    • Movement
    • Candles
    • Lava
  • Set up gameplay loop
  • Set up win condition
  • Add GUI
  • Add patrols
  • Make sure there are no memory leaks :)

The Home Stretch

  • Add a function on exiting the render loop which detaches all images from their spritesheet pixel buffers, to avoid double frees
  • Free the entire map struct on ending the game
  • Do not immediately exit the game when winning or losing, stick around for a death animation or a victory screen
  • Rework animations to be on a get_time clock instead of a frame clock
  • Add an indicator of where each patrol is moving next
  • Add a validation for patrols that are "stuck" between two walls or start next to a player
  • Rework the GUI to not re-render everything each time and use layered string images instead

Asset Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published