Skip to content

Instantly share code, notes, and snippets.

View p3nGu1nZz's full-sized avatar
🌎
Working from Space

p3ngu1nZz p3nGu1nZz

🌎
Working from Space
  • N. America
View GitHub Profile
## You
hi copilot, attached is our first conversation together in a series of conversations about our MarsGame made in unity 2023 HDRP with netcode for gameobjects. We just implement the basic game system state machine and everything seems to be working, i will attach part 2 of our last conversation in the next prompt
## Copilot
Hello, I'm glad to hear that you are making progress on your MarsGame project. It sounds like an exciting and challenging endeavor. 😊
I have read the file you uploaded, which contains the first part of our conversation about your game. Here are some of the main topics we discussed:
- The game concept and setting: You explained that your game is a multiplayer survival game set on Mars, where players have to explore, gather resources, build bases, and fight enemies.
- The game engine and graphics: You chose to use Unity 2023 HDRP, which is a high-end rendering pipeline that supports realistic lighting, shadows, reflections, and materials. You also mentioned some of the assets and tools
using System;
using System.Collections.Generic;
using UnityEngine;
namespace HFSM
{
public abstract class StateMachine<T>
{
T ctx;
using System;
public class Singleton<T> where T : class, new()
{
// The single instance of the type T
private static readonly Lazy<T> instance = new(() => new T());
// The private constructor to prevent outside instantiation
public Singleton() { }
using System;
using System.Collections.Generic;
using UnityEngine;
namespace HFSM
{
public class StateMachine<T> : Singleton<StateMachine<T>>
{
T context;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace HFSM
{
/// <summary>
/// Our General Purspose Hieracrhial State Machine Engine. This class allows
/// sub states to bind addition nodes of states to create a tree structure. We also
~/code/as-boilerplater
➜ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help json` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@p3nGu1nZz
p3nGu1nZz / logins.csv
Created August 20, 2020 17:26 — forked from petermcd/logins.csv
A listy of credentials tried when I opened an SSH port to the internet for a week. in the format request ID, username, password, time/date of attempt, request coun try of origin, unique id representing the IP making the connection.
We can't make this file beautiful and searchable because it's too large.
id,username,password,when,country,host_id
21,admin,7ujMko0admin,2019-02-02 10:39:27,China,0
22,pi,jdd,2019-02-02 10:40:09,United Kingdom,1
23,pi,kkk,2019-02-02 10:40:11,United Kingdom,1
24,pi,lk,2019-02-02 10:40:13,United Kingdom,1
25,pi,kk',2019-02-02 10:40:16,United Kingdom,1
26,pi,kjj,2019-02-02 10:40:18,United Kingdom,1
27,pi,fds,2019-02-02 10:42:55,United Kingdom,1
28,pi,eee,2019-02-02 10:42:56,United Kingdom,1
29,pi,fds,2019-02-02 10:42:57,United Kingdom,1
@p3nGu1nZz
p3nGu1nZz / 328973420987340987342
Created February 19, 2020 05:14
230978324908734290842
/*
* COMPONENT - ACTIVE-CIRCUIT-FEED
*/
#component.circuitLayout #wrapper.activeCircuitFeed {
height: 100%;
}
#component.circuitLayout #component.activeCircuitFeed {
height: 100%;
}
@p3nGu1nZz
p3nGu1nZz / 0549785498754697857849
Created February 19, 2020 05:14
43789298734578903427890
import React, {Component, createRef} from "react";
import {Icon, Image, Input, Menu, Segment} from "semantic-ui-react";
/**
* This class is used to render the active circuit feed in the console view
*/
export default class ActiveCircuitChat extends Component {
/**
* builds the active circuit chat component for the circuit feed
* @param props