Skip to content

billtong/cpixel-game

Repository files navigation

about

This is an simple 2d game for SDL2 and Skia library practice in CPlusPlus

easy to run

Windows (VS2019)

  1. sdl2 download
  2. skia set-up tutorial
  3. build a new solution in Visual Studio 2019 with this repository and load libraries of sdl2 and skia

log

  • 20191010 待改进:需要把UI + Thread放在用一个header file下。目的是公用变量。每一个场景做成单独的一个header file。
  • 20191011 commit1: 完成页面线程切换,从menu到level 0
  • 20191013
    • 今天完成CWall,CPlayerX。
    • 需要加强玩家实例和墙实例之间Collide的判断准确性,尽可能减少线程的使用,预防ui堵塞
  • 20191014
    • 添加岩浆和命, 修改了玩家实例进入Wall的bug
  • 20191016
    • 给玩家添加了fall状态, 完善了状态判断
    • 将Move状态机抽象成CPlayer的内部类
    • 修改玩家实例在墙实例左下的判断bug
    • 抽象游戏场景到CGameScene类,添加CText类
    • 小bug:如果将m_iSurface指针到处乱传递,回报错,尽量不要用它作为parameter
  • 20191020
    • 修理Player状态机判断和执行方法。

About

a pixel game using sdl & skia

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages