This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Players can hurt and kill other players | |
| PVP=true | |
| # PVP is logged to admin chat | |
| PVPLogToolChat=true | |
| # PVP is logged to file | |
| PVPLogToolFile=true | |
| # Game time stops when there are no players online |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| AbstractCsvData.cs Copyright 2024 Paul Hayes | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the “Software”), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @if "%DEBUG%" == "" @echo off | |
| @rem ########################################################################## | |
| @rem | |
| @rem sdkmanager startup script for Windows | |
| @rem | |
| @rem ########################################################################## | |
| @rem Set local scope for the variables with windows NT shell | |
| echo "MEEP2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| slot_dim = 15.4; | |
| thickness = 4; | |
| length = 40; | |
| outer_scale = (slot_dim+2*thickness)/slot_dim; | |
| difference(){ | |
| hull() for(a=[0,90,180,270]){ | |
| rotate([45,0,a]) rotate([90,0,0]) | |
| scale(outer_scale) translate([-slot_dim/2,-slot_dim/2,10]) cube([slot_dim,slot_dim,length/outer_scale]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using Photon.Pun; | |
| using Photon.Realtime; | |
| using UnityEngine; | |
| public class LocalOrOnlinePhotonConnect : MonoBehaviour, IConnectionCallbacks | |
| { | |
| [SerializeField] ServerSettings photonOnlineSettings; | |
| [SerializeField] Photon.Realtime.AppSettings photonOfflineSettings; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class RigidbodyTrackTransform : MonoBehaviour | |
| { | |
| [SerializeField] Rigidbody body; | |
| [SerializeField] Transform target; | |
| [SerializeField] float maxSpeed = 30f; | |
| [SerializeField] float maxRotSpeed = 720f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function normalize(v) = norm(v)==0 ? 0 : v/norm(v); | |
| function wrap(i,l) = ((i%l)+l)%l; | |
| function lerp(start, end, bias) = (end * bias + start * (1 - bias)); | |
| function truncate_corners(points,size) = [ | |
| for(i=[0:len(points)-1]) | |
| for(j=[-1,1]) points[i]+size*normalize(points[wrap(i+j,len(points))]-points[i]) | |
| ]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEditor; | |
| /// <summary> | |
| /// Attribute to select a single layer. | |
| /// </summary> | |
| public class LayerAttribute : PropertyAttribute | |
| { | |
| // NOTHING - just oxygen. | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define SPEAKER_PIN PB0 | |
| static void timer_set(uint8_t OCRxn, uint8_t N); | |
| static void timer_clear(); | |
| static void tone(uint16_t freq); | |
| static void notone(); | |
| void enable_tone() | |
| { | |
| TCCR0A |= _BV(WGM01); // set timer mode to Fast PWM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is executed on every boot (including wake-boot from deepsleep) | |
| #import esp | |
| #esp.osdebug(None) | |
| #import webrepl | |
| #webrepl.start() | |
| import network | |
| wlan = network.WLAN(network.STA_IF) | |
| wlan.active(True) | |
| if not wlan.isconnected(): |
NewerOlder