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
Chapter 1The briefThe project in a few linesTo discover
Chapter 2GameplayWhat the app does, feature by featureTo discover
Chapter 3The numbersThe results screenTo discover
Chapter 4Behind the scenesRole, period, platforms and stackTo discover
Chapter 5Photo modeEvery screenshot, full sizeTo discover
Chapter 6TrophiesWhat was achieved on this projectTo discover
Chapter 7CreditsWho did whatTo discover
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.
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).
The numbers
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
Photo mode
Trophies
Witch: Undo the Spell
- 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
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


