Giter Club home page Giter Club logo

sprout-c-game-2024's Introduction

資訊之芽 2024 大作業二

How to Start

WebGL 遊戲安裝

  1. 先去右上角點擊 Code -> Download ZIP
  2. 解壓縮後,用 VSCode 開啟該資料夾
  3. 在 VSCode 的 Terminal 輸入 docker compose up

或是如果會用 git 的話,可以簡單的用以下指令可以把 遊戲跟 C++ server 架起來

git clone https://github.com/iceylemon157/sprout-c-game-2024
cd sprout-c-game-2024
docker compose up

此時在瀏覽器中打開 localhost:12345/app 即可看到遊戲畫面。

C++ server

接著開一個新的 terminal,先進到 sprout-c-game-2024 資料夾 (你剛剛下載完的程式碼檔案的資料夾) 裡面,然後執行以下指令就可以把 C++ server 跑起來

docker compose exec cpp_server /bin/bash
(在 docker 裡面) make && ./server

Reference

Game Assets are mostly from the tutorial of Code Monkey. Also, many of the C# code follows the tutorial (for the WebGL build), while the code has been modified by me to be able to connect to C++ Server.

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.