Skip to content

Instantly share code, notes, and snippets.

Avatar
💛
.

Alexandre D. Roberge AldeRoberge

💛
.
  • ASYNC Games
  • Québec, Canada
View GitHub Profile
View NetworkArray.cs
using LiteNetLib.Utils;
namespace AG_LNL_Shared.Networking.World.Packets.DataObjects.Base.Utils
{
/// <summary>
/// Utils to serialize and deserialize arrays.
/// </summary>
public static class NetworkArray
{
public static T[] Deserialize<T>(NetDataReader rdr) where T : DataObject, new()
@AldeRoberge
AldeRoberge / Ticking.cs
Created Jan 6, 2021
Ticking logic for world
View Ticking.cs
public void TickLoop()
{
Log.Info("Logic loop started.");
int loopTime = 0;
Stopwatch watch = Stopwatch.StartNew();
RealmTime t = new RealmTime();
View Game code (Javascript)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Jeux - S.T.A.R.S</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<style>
.game-canvas {