Code Monkey home page Code Monkey logo

poo-game's Introduction

The Poo Game ๐Ÿ’ฉ

Build

A silly little Poo Game - a simple first experiment with a DirectX 11 based framework. This is a first step toward creating my own game engine framework built directly on DX11 and the Win32 API.

Wait, what?

The Poo Game comes from one of Planet Chili's YouTube C++ Tutorial series. If you peek under the hood, you'll find the game is built using modern C++20 features and the Chili Framework. The Chili Framework is built on DirectX 11 and uses the Win32 API for window management.

While not the most tasteful game, it was a good first experiment before I go ahead and create a similar framework on my own.

Game Architecture

The core game loop runs inside Game::Go which is called each tick inside our WinMain function. All of the game logic is located and managed inside the Game class, acting as both Model and Controller. Clients of the Chili Framework are largely expected to contain their game logic to this class for building simple games. For this game, each game object implements the Update Method design pattern, and takes care of drawing itself to the window with the framework's Graphics context. All graphics you see in the game were provided with the framework, including the code to draw them to the window.

Requirements

  • Visual Studio 2022
  • C++20
  • Win7+
  • A graphics card that supports DX11

How to Build & Run

You can build the solution using either Visual Studio or from the command line with MSBuild.

Visual Studio

Building the solution should work as expected. Wait for the solution to load and press the big ol' play button (or ctrl-F5 if you are lazy like me).

MSBuild from the Developer Command Prompt

You can build the solution with MSBuild from a Developer Command Prompt, or from Powershell if you have the standalone Build Tools for VS 2022 installed and don't want to launch Visual Studio.

Run MSBuild.exe in the root of the project (automatically builds the .sln file in the current dir) and then launch the game with & '.\x64\Debug\The Poo Game.exe'.

How to Play

๐Ÿ˜„ Use the arrow keys to move your little Dude around the screen.

๐Ÿ”ด Reach the goals to score points.

๐Ÿ’ฉ Avoid the poop.

The Poo Game

poo-game's People

Contributors

tessapower avatar

Stargazers

Connor Power avatar

Watchers

 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.