owdproject / owd-app-snake

Snake module for OWD Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake module for OWD Client

2D snake client of Web Plays Snake for Open Web Desktop

OWD Snake module demo

Become a Patron Join us on Discord

Demo

Try it out, just open the terminal and type "snake"

Features

  • A 2D client for Web Plays Snake that connects through the Server-Sent Events API
  • Play from the terminal, send "snake" for available commands (requires owd-terminal)

Quick install

  • Move to your client folder, then
    # Install this module with Npm
    npm install https://github.com/hacklover/owd-app-snake
    
    # Or using Yarn
    yarn add https://github.com/hacklover/owd-app-snake
    
  • Define this module in owd-client/client.extensions.ts
    import AboutModule from "@owd-client/core/src/modules/app/about";
    import DebugModule from "@owd-client/core/src/modules/app/debug";
    import SnakeModule from "owd-app-snake/client";
    
    export default {
      app: {
        modules: [
          AboutModule,
          DebugModule,
          SnakeModule,
        ]
      },
      ...
  • Add this to owd-client/vite.config.ts
    optimizeDeps: {
      include: ['p5']
    }
    
  • Copy the content of the client/config folder into owd-client/config

Dependencies

  • p5

Compatibility

  • Open Web Desktop client v2.0.0-beta.1

License

This project is released under the MIT License

About

Snake module for OWD Client

License:MIT License


Languages

Language:TypeScript 54.0%Language:Vue 29.6%Language:JavaScript 16.3%