Skip to content

Instantly share code, notes, and snippets.

@antopilo
antopilo / CameraShake.cs
Created February 26, 2019 18:25
Shake on any camera2D in Godot.
using Godot;
using System;
public class Camera : Camera2D
{
private RandomNumberGenerator Rng = new RandomNumberGenerator();
public bool Shaking = false;
public float Amount;
public Timer _Timer;
@antopilo
antopilo / PlayerControllerRobin
Last active October 10, 2019 00:13
Player.cs class in my game Robin.
using Godot;
using System;
using System.Collections.Generic;
public class Player : KinematicBody2D
{
public CollisionShape2D CollisionBox { get; private set; }
public AnimatedSprite Sprite { get; private set; }
public Camera Camera { get; private set; }
public Arrow Arrow { get; set; }