Code Monkey home page Code Monkey logo

risque's Introduction

Setup

  • Get PHP dependencies with composer install

  • Grab Node dependencies with npm run npm

  • Run php artisan key:generate

  • Add .env file with these settings:

     DB_HOST=localhost
    
     DB_DATABASE=risque
    
     DB_USERNAME=root
    
     DB_PASSWORD=root
    
  • Add initial users with php artisan db:seed --class=RegularUsers

  • Kickoff the FE build with npm run watch

  • Use the data from earth-map.json for a single record in the maps table, or to inspect the data model for map editing.

risque's People

Contributors

thelucre avatar

Watchers

James Cloos avatar Michael Starks avatar  avatar

risque's Issues

Use SVG format to generate tiles

Maybe a <group> for specifically for tiles and another for decorative information. The entire map settings should have an height/width or aspect

Add Player setup screen

Happens during state WAITING_FOR_PLAYERS

  • Allows player to change name and set a color
  • Route should be get@/game/{id}
  • View partial will be games/confirm.haml
  • Fork the games/index.haml to show different partials depending on the game state
  • After submit, verify if each player is confirmed

Once all players have confirmed:

  1. Run the map build to allocate player starting positions
  2. Game state changes to PLAYER_TURN

How to architect validation for each POST

For instance, post@/game/new should pass through a series of validation checks before creating a new Game instance. How do we use validation to cover our bases for situations like, users[] must be >= 2 in length, all users must have account, no duplicate ID's etc.

Card Ideas

Air drop: move units from one tile to any other tile (connected or not)

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.