Giter VIP home page Giter VIP logo

r136.net's Introduction

R136.NET

Plain .NET build Azure SWA STA Azure SWA PRD

This is a .NET web and console version of a text adventure a friend and I created all the way back in 1998. More information about the game and its history can be found in the README of the original C(++) version GitHub repo.

Since its resurrection, R136 has become a willing vehicle for me to try new things. This single-pager "static" web app, console application and shared game engine blend, marks my first dabble with developing for/in/using:

Concerning the game itself:

  • It has been converted from a purely C-like procedural implementation to an object-oriented one.
  • Much of it (including all visible texts) can now be configured through JSON files.
  • It now runs in English as well as Dutch, and features on-the-spot switching between those two languages.

Building

On any system that has a .NET 8.0 SDK and node.js (npm) installed, R136.NET can be built using Visual Studio 2022, the dotnet command line interface or another tool that uses the latter.

The Web project is a Blazor WebAssembly project with AOT compilation enabled. This means that the following command must be issued once before building it for the first time:

$ dotnet workload install wasm-tools

The Shell and Web projects have an optional build-time dependency on the BuildTool project; the latter takes care of processing the base .json files in the data directory structure to their production counterparts. The dependency is optional in the sense that the JSON processing is simply skipped if the BuildTool executable is not found when building the dependent projects.

When building the solution, this dependency is taken care of automatically. When building individual projects using the command-line, the BuildTool should be built first if JSON processing is desired. This can be done by running the following command from the src subdirectory before building a dependent project:

$ dotnet build R136.BuildTool/R136.BuildTool.csproj

The dependent project can then be built, after (Shell used as an example):

$ dotnet build R136.Shell/R136.Shell.csproj

I've successfully built the Shell project on Windows and Linux (Cloud9 Amazon Linux 2, to be precise), following these instructions.

- Rutger van Bergen - github.com/rbergen

r136.net's People

Contributors

rbergen avatar

Stargazers

 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.