Code Monkey home page Code Monkey logo

cppfishingcode's Introduction

纯C++ 捕鱼游戏

语言:C++
编辑器:VS2015
渲染:D2D
碰撞:obb和aabb
编译选项:请选择Release x86 编译

项目文件目录说明

img 放游戏所使用的图片文件夹
frame 放控制游戏场景相关的文件
instance 放游戏窗口进程 游戏循环 工具类 碰撞类的文件
render 放游戏渲染引擎的文件夹
trigger 放对一些消息进行映射的文件夹
后面会详细对游戏的各个流程进行详细说明
主要说明:
开发流程介绍
渲染类content.h的封装
显示对象DisplayObject.h的封装
精灵对象sprite.h的封装
场景类action.h的封装
计时器对象ticker.h的封装
窗口对象App.h的说明
消息映射和流程触发结构 Manager.h
子弹对象bullet.h的封装
鱼类fish.h的封装
控制创建鱼类fishConfig.h的封装
编写场景0结构TitleScene.h
编写场景2结构StageSelectScene.h
编写场景1结构PlayGameScene.h
金币对象gold.h的封装
检查对象colVec.h的封装

项目目录

项目目录截图

运行效果截图

项目运行效果截图

这里说明一下

由于这是我第一个c++游戏所以这个里面有非常多的bug如果要进行商业开发的话请另行更加快捷的渲染流程(我的这个里面的渲染有问题) 我会在后面的开源游戏中重新构建一种多线程的 非常流畅 非常流畅 非常流畅的渲染形式 后面会对捕鱼的源码进行重写 如果要商用的朋友请一定要记住呀!!!!

编译说明

  1. 源码clone下来我们新建一个空项目
  2. 在空项目里面加入我们的源码 并包括到项目中
  3. 然后就是进行设置了 属性 > C/C++ > 语言 > 符合模式设置为否
  4. 然后就是进行设置了 属性 > 常规 > 字符集 设置为 使用 Unicode 字符集
  5. 然后进行编译

更新日志

20190922 修改获取资源的对比问题

cppfishingcode's People

Contributors

v012345 avatar yinhui1129754 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.