Giter Club home page Giter Club logo

orbs's People

Contributors

flashfyre avatar twig33 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

orbs's Issues

Working on the Player's UI

Hey! I've been testing writing stuff in CSS and JS that could be used on the Player's page UI:

image

https://codepen.io/jetrotau/full/ZEJqmEE
It already has functions related to the client side of the chat, like:

Display Alerts:

image

var msg = buildMessage.alert( "Connected to Room 3", "warning" );
displayMessage(msg);

// where :
// "warning" = Yellow BG alert
// "error" = Red BG alert
// having no parameter = black BG alert

Display Chat Messages from Client:

var msg = buildMessage.chat( playerName,"Any kind of Text", 1 )
displayMessage(msg);

// where :
// playerName = is a var that deals with the NickName selection
// 1 = is what tells the message builder that it's a message from the client.

Display Chat Messages from Other Players:

var msg = buildMessage.chat( "AnotherPlayer", "Testing Message From outside")
displayMessage(msg);

// where :
// "AnotherPlayer" = can be any kind of string
// the lack of the 1 param, tells to the builder that this is not a message from the client.

Clear Chat Button + Info Button + Alerts
image

Hide Chat Button:
image

You can also customize the colors scheme of it:
image

I didn't want to make a mess in your code, so hosted it on codepen: https://codepen.io/jetrotau/full/ZEJqmEE
But I tried to keep the names of the HTML elements and some variables that I saw on the current Play page.

image
I also organized the functions for readability and easy maintenance.

feel free to use or discard any of the ideas from it.

Player turning without movement not being updated on other clients

If a player turns without actually moving any tiles, this change isn't reflected on all other connected players. The player will appear to look the same direction they had originally walked in to everyone else.

Apologies if this isn't the right repository to post this under, ynoclient doesn't have issues enabled.

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.