ndinhtuan / pacmansdl

Coding pacman game for learning SDL framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

In this project, we use SDL framework to program the simple game - Pacman, which is the first lesson for coding with SDL.

I. Structure

  1. [] Control pacman character: moving with keyboard.
    • Organizing source code:
      • src: including code: header(h), source(cpp)
      • assets: including sprite - image of characters, sound, ...
    • Get sprite of pacman
    • Using keyboard event in SDL
  2. [] Creating obstacle: wall - character cannot moving when see obstacle
  3. [] Creating other characters
  4. [] Creating awards
  5. ...

1. Control pacman character

  1. .h - declare class of object pacman
  2. .cpp - define class of object pacman

About

Coding pacman game for learning SDL framework


Languages

Language:C++ 98.4%Language:C 1.6%