Git Product home page Git Product logo

cpp-game-utils-template's Introduction

Usage

Fork/clone this repository.

run python3 initialize_project.py to download dependencies.

Compile for Desktop

cd desktop

cmake . (only the first time, and everytime you add new files)

make -j8 (-j8 tells the compiler to use 8 threads)

cd ..

./desktop/out/game

Compile for HTML/Web

NOTE: install Emscripten first

cd html

emconfigure cmake . (only the first time, and everytime you add new files)

make -j8

emrun out/game.html

Configure GitHub build & deploy automation

This repository contains a Github Workflow which automates the building and deploying of the HTML game to GitHub Pages.

This workflow can be found in .github/workflows/html_build.yml and in the Actions tab on GitHub.

This workflow will require a secret access token in order to deploy your game to GitHub pages.

Steps to add the secret access token:

  • Go to your account settings on GitHub
  • Go to 'Developer settings' -> 'Personal access tokens'
  • Click 'Generate new token'
  • Create a token with the 'repo' scope
  • Copy the access token
  • Go to 'Secrets' in your repository's settings
  • Add a new secret with the name 'ACCESS_TOKEN' and paste the token in the text field
  • Trigger the workflow (by commiting something for example) and the game should appear on https://*your-username*.github.io/*your-repo-name*/game.html

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.