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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class DroneController : MonoBehaviour { | |
Rigidbody rigidbody; | |
AudioSource audio; | |
bool thrustAudio = false; | |
bool thrustAudioOn = false; |
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
/// FishDrone by JackDraak | |
/// July 2018 | |
/// 'changelog' viewable on GitHub. | |
/// | |
using UnityEngine; | |
public class FishDrone : MonoBehaviour | |
{ | |
private Animator animator; | |
private float changeDelay, changeTime; |
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 UnityEngine; | |
public class MouseGimbal : MonoBehaviour | |
{ | |
[SerializeField] [Range(0,89)] float maxRotationDegrees = 10.0f; // At 90+ gimbal oddities must be dealt with. | |
[SerializeField] bool ClampToMaxRotationDegrees = true; // Disable for free rotation. | |
[SerializeField] float rotationSpeed = 10.0f; | |
const float fullArc = 360.0f; | |
const float halfArc = 180.0f; |
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
from Tile import Tile | |
import random | |
import usage | |
class Game: | |
def __init__(self, dimension: int, shuffled: bool): | |
entropy_factor = 100 | |
self.dimension = dimension | |
self.blank_label = dimension * dimension |
OlderNewer