Skip to content

Instantly share code, notes, and snippets.

Markus Ritberger Slemgrim

View GitHub Profile
@Slemgrim
Slemgrim / RotationPivot.cs
Last active Nov 29, 2018
Rotate by pivot inside Unity editor
View RotationPivot.cs
using UnityEngine;
public class RotationPivot: MonoBehaviour
{
/**
* The transform of the object you want to rotate with this pivot
*/
public Transform target;
View minefield.dart
library minefield;
import 'dart:html';
import 'dart:math';
part 'field.dart';
class Minefield {
int _width; // Width of canvas
View minefield.dart
library minefield;
import 'dart:html';
import 'dart:math';
part 'field.dart';
class Minefield {
int _width; // Width of canvas
View field.dart
part of minefield;
class Field{
final int index;
final Point position;
bool isOpen = false;
bool isMine = false;
bool isFlagged = false;
int surroundingMines = 0;
View minefield.dart
library minefield;
import 'dart:html';
class Minefield {
int _width; // Width of canvas
int _height; // Height of canvas
Element _container;
You can’t perform that action at this time.