Skip to content

Instantly share code, notes, and snippets.

Markus Raudaschl Slemgrim

Block or report user

Report or block Slemgrim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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;
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
@Slemgrim
Slemgrim / RotationPivot.cs
Last active May 23, 2019
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;
You can’t perform that action at this time.