Skip to content

Instantly share code, notes, and snippets.

View rdeioris's full-sized avatar

Roberto De Ioris rdeioris

View GitHub Profile
public class PacketManager : MonoBehaviour
{
[SerializeField]
string address;
[SerializeField]
int port;
[SerializeField]
uint mySelfId = 0;
import socket
import struct
class Player:
def __init__(self, id, peer):
self.id = id
self.peer = peer
self.position = (0, 0, 0)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;
namespace NetApp001
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Net;
using System.Net.Sockets;
using System;
public class MovementsServer : MonoBehaviour
{
[SerializeField]
#define SDL_MAIN_HANDLED
#include <SDL.h>
#include "glad.h"
#include <string>
#include <vector>
#include <cmath>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aiv.Fast2D;
using OpenTK;
namespace Fast2DApp
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aiv.Fast2D;
using OpenTK;
namespace Fast2DApp
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aiv.Fast2D;
using OpenTK;
namespace Fast2DApp
{
.org $c000 $fff9
.define BG_COLOR $5100
.define GREEN 2
.define BLUE 3
.define INPUT $5106
.define COLUMN $5103
.define ROW $5104
.define VRAM $5105
#include <dxgi1_6.h>
#include <d3d12.h>
#include <iostream>
#include <string>
#include <system_error>
#include "vs.h"
#include "ps.h"