valksgodottools / godotutils Goto Github PK
View Code? Open in Web Editor NEWAn ever expanding Godot 4 C# game dev library to be used across several game projects
License: MIT License
An ever expanding Godot 4 C# game dev library to be used across several game projects
License: MIT License
/*
* TODO: Save the peer ip to banned.json and
* check banned.json whenever a peer tries to
* rejoin
*/
Instead emit an event Logger::AddMessage
that other projects can subscribe to
Context: I am working on developing a game server and I would like to know where to read / write to banned_players.json
.
Should it be stored in
A) Local AppData
B) Roaming AppData
C) Local Game Folder
D) Somewhere else
I'm trying to get a demo going for this multiplayer code.
Implementing it all here https://github.com/Valks-Games/Sandbox2
Proving to be a challenge. All help is welcome.
Several people have recommended that I should replace all opcode enums with bytes.
The Packet classes get mapped to bytes.
I have tried to do this twice now and I've failed both times.
Why do this? To remove all ugly generics from ENetServer and ENetClient. Also this will simplify server.Send() as it will no longer require you to pass in a opcode as the packet class itself would act as the opcode. Also you would no longer have to worry about defining a opcode for each packet class you make.
If anyone can help me figure this out, it would be greatly appreciated!
Spam console with text until the console scroll on the right becomes visible. In other words spam enough text to the console until it goes off screen. Then make sure you are scrolled to the very top of the console. Then re-open the console and you will notice that the console does not scroll to the bottom.
For example
var color = new UILabeledColorPickerButton(new LabeledColorPickerButtonOptions()); // <------
color.ValueChanged += v => Logger.Log(v);
AddChild(color);
Another example
var optionButton = new UILabeledOptionButton(new LabeledOptionButtonOptions("SomeTest", "AnotherOption")); // <------
optionButton.ValueChanged += (item) =>
{
Logger.Log(item);
};
AddChild(optionButton);
There has to be a better approach to this.
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.