Skip to content

t0mmusic/42_SoLong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_SoLong

A very basic game made in c.

Purpose

The goal of this project is to render images in a window and update those images with user inputs. In order to demonstrate this, we make a simple game. The game consists of moving a player around to collect items and then reach an exit. Each of these are represented by a single character.

  • P is the player
  • C is the collectable item
  • E is the exit
  • 0 is an empty space the player can move to
  • 1 is a wall the player cannot move past

A map is made using this criteria and stored in a file with the extension '.ber', which is then imported into the program.
An example of a valid map would be:

11111111111
1C00001E001
10P01001001
10001000001
11111111111

The map must be rectangular to be valid.

Bonus

The game now has enemies that move back and forth and cause a 'game over' when the player interacts with them. There is also a counter in the window showing how many moves the player has made.

Status

Complete! Project passes with 118% with some bonuses.

About

A very basic game made in c.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published