twig33 / orbs Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 2-Clause "Simplified" License
License: BSD 2-Clause "Simplified" License
Hey! I've been testing writing stuff in CSS and JS that could be used on the Player's page UI:
https://codepen.io/jetrotau/full/ZEJqmEE
It already has functions related to the client side of the chat, like:
Display Alerts:
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
You can also customize the colors scheme of it:
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.
I also organized the functions for readability and easy maintenance.
feel free to use or discard any of the ideas from it.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.