Coder Social home page Coder Social logo

hungud / aspnet-core-demogame Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eonarheim/aspnet-core-demogame

0.0 2.0 0.0 910 KB

ASPNET Core demo

License: MIT License

C# 6.28% TypeScript 1.11% PowerShell 12.82% JavaScript 79.75% CSS 0.01% HTML 0.03%

aspnet-core-demogame's Introduction

ASP.NET Core Demo with SignalR

This is a simple showcase of a trivial multiplayer game using SignalR. It also showcases many of the new features of ASP.NET Core, including:

  • Strongly-typed Options
  • Cascading configuration
  • Custom Tag Helpers
  • View dependency injection
  • Bundling/minifying
  • Injected Filters

๐Ÿ’ฏ

Run the app:

dotnet restore
dotnet run

To play the game, just move arrows. In non-development environment, it will autogen player names.

In Visual Studio it will run under IIS Express. You can also publish it to Azure to test it out (be sure to enable Web Sockets in Azure, probably will need S1 or above).

Join the game by typing a name and press the arrow keys to move your player. Other players will be shown and updated when they move.

To keep things simple, moves are step-based (32px) and bounded to the map. Player state is stored in a static dictionary.

THIS IS NOT AN EXAMPLE OF HOW TO MAKE A MULTIPLAYER GAME. It is merely a fun exercise to show .NET Core and SignalR working together.

aspnet-core-demogame's People

Contributors

easysoft2k15 avatar eonarheim avatar kamranayub avatar

Watchers

 avatar  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.