Skip to content

Instantly share code, notes, and snippets.

View mrowdy's full-sized avatar

Markus Raudaschl mrowdy

  • Technical Artist
  • Linz / Austria
View GitHub Profile
@mrowdy
mrowdy / RotationPivot.cs
Last active May 23, 2019 06:56
Rotate by pivot inside Unity editor
using UnityEngine;
public class RotationPivot: MonoBehaviour
{
/**
* The transform of the object you want to rotate with this pivot
*/
public Transform target;
library minefield;
import 'dart:html';
import 'dart:math';
part 'field.dart';
class Minefield {
int _width; // Width of canvas
library minefield;
import 'dart:html';
import 'dart:math';
part 'field.dart';
class Minefield {
int _width; // Width of canvas
part of minefield;
class Field{
final int index;
final Point position;
bool isOpen = false;
bool isMine = false;
bool isFlagged = false;
int surroundingMines = 0;
library minefield;
import 'dart:html';
class Minefield {
int _width; // Width of canvas
int _height; // Height of canvas
Element _container;