MMC

2D platformer in C · 2019

Witch: Undo the Spell

2D platformer written in C with SDL 1.2: three stages, a two-player split-screen mode, riddles and saved games.

Chapter select

  1. Chapter 1The briefThe project in a few linesTo discover
  2. Chapter 2GameplayWhat the app does, feature by featureTo discover
  3. Chapter 3The numbersThe results screenTo discover
  4. Chapter 4Behind the scenesRole, period, platforms and stackTo discover
  5. Chapter 5Photo modeEvery screenshot, full sizeTo discover
  6. Chapter 6TrophiesWhat was achieved on this projectTo discover
  7. Chapter 7CreditsWho did whatTo discover
Chapter 1

The brief

A 2D platformer in C, signed by two authors in the code: a villager armed with a magic wand crosses three stages to break the curse a witch has cast on his town.

Chapter 2

Gameplay

  • Written in C with SDL 1.2 (SDL_image, SDL_mixer, SDL_ttf, SDL_gfx): 16 source files and 12 headers, about 13,600 lines.
  • Three side-scrolling stages with enemies, traps, health, score, a timer and a progress mini-map.
  • Two-player mode on one keyboard with a split screen: two 683 × 768 pixel cameras.
  • Multiple-choice riddles picked at random among four; solving one unlocks a shield on the H key.
  • Eight-panel story intro, mouse or keyboard menu, volume settings, pause, and resuming a saved game (“Continue”).
  • Code documentation generated with Doxygen, in HTML and LaTeX (version 0.5).
Chapter 3

The numbers

3stages · 2-player mode
Stages3
Players1 or 2 (split screen)
Code16 C files · ~13,600 lines
Assets170 images · 8 sounds
Resolution1366 × 768
Chapter 4

Behind the scenes

Role
C / SDL co-developer
Organization
Alpha C Production
Period
2019 · published on GitHub in July 2020
Platforms
Linux
Status
Team project, archived

Tech stack

CSDL 1.2SDL_imageSDL_mixerSDL_ttfSDL_gfxMakefileDoxygenLinux
Chapter 5

Photo mode

Chapter 6

Trophies

Witch: Undo the Spell

Linux · 2 trophies

11100% earned
  • Split screen

    Let two players share one keyboard, each on their half of the screen.

    Silver
    Rare · Earned 2019
  • Shield unlocked

    Solve a riddle to earn the shield on the H key.

    Bronze
    Common · Earned 2019
Chapter 7

Credits

A production by

Alpha C Production

Design and development

Mohamed Melek Chtourou

Role

C / SDL co-developer

Period

2019 · published on GitHub in July 2020

Tech stack

C · SDL 1.2 · SDL_image · SDL_mixer · SDL_ttf · SDL_gfx · Makefile · Doxygen · Linux

Credits

The game depends on SDL 1.2 and no longer builds as is on a current machine: these images are the original screens and backgrounds from the repository (title, studio, intro, stages, riddle), without the characters or the in-game interface.

Thanks for playing

Other games