Skip to content

Instantly share code, notes, and snippets.

View piedoom's full-sized avatar
🦀
rust rust rust rust rust rust rust rust

doomy piedoom

🦀
rust rust rust rust rust rust rust rust
View GitHub Profile
class TestCollider : Component, IUpdatable
{
public override void onAddedToEntity()
{
entity.addCollider<BoxCollider>(new BoxCollider(100,100));
}
public void update()
{
var bottomLeft = new Vector2(entity.colliders.First().bounds.left, entity.colliders.First().bounds.bottom);;
class TestCollider : Component, IUpdatable
{
public float Distance;
public override void onAddedToEntity()
{
entity.addCollider<BoxCollider>(new BoxCollider(100,100));
}
public void update()
using Microsoft.Xna.Framework;
using Nez;
using Nez.Sprites;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Vapor.Code.Utility;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Nez;
using Nez.Sprites;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Nez;
using Microsoft.Xna.Framework;
using Nez.Sprites;
using Microsoft.Xna.Framework.Graphics;
using Nez.Tiled;
using Microsoft.Xna.Framework;
using Nez;
using Nez.UI;
namespace Vapor.Code.Utility.UI
{
/// <summary>
/// Set up a general purpose canvas and table to draw stuff with
/// </summary>
class BaseUI : Component
<script>alert()</script>
// first, we get a list of all posts
BasePost[] inbox = Client.GetSubmissionPostsAsync(TUMBLR_BLOG_NAME);
// loop through our inbox
foreach (var message in inbox)
{
// cast our generic BasePost to an AnswerPost to expose relevant information
AnswerPost ask = (AnswerPost)message;
// edit our post and publish
/** @type {Array} */
var _0x4e04 = ["size", "children", "body *", "random", "floor", "undefined", "rotateX", "rotateY", "rotateZ", "skewX", "skewY", "translateX", "translateY", "scaleX", "scaleY", "perspective", "length", "%", "deg", "(", ")", "css", "slow", "remove", "fadeOut", "pointer-events", "none", "#glitch", '<div id="transmission">...<br/><span class="content"></span><span class="cursor">\u258c</span></div>', "html", "body", "color", "#FFFFFF", "transition", "all .3s linear", "*", "rgba(0, 0, 0, .6)", "10px auto 0",
"left", "61ch", "break-word", "100%", "50px", "monospace", "1.2rem", "#a939ff", "#transmission", "ICAgICAgICAgICAgICAgICAgICAgICAgICA6UEKPQms6CiAgICAgICAgICAgICAgICAgICAgICAsakKIQEJAQkBCQEJCTC4KICAgICAgICAgICAgICAgICAgIDdHlkKTQpVCTU1NTU1CQEJAQkBOcgogICAgICAgICAgICAgICA6a0KSQpCIl01NT01PTU9NT01NTU2MQphCQEIxLAogICAgICAgICAgIDo1kUKNQphCiEJCTU1PTU9NT01PTU9NT01NipJuQm5CQEJCdS4KICAgICAgICA3MG6GlUKIQpJClEJYQkJPTU9NT01PTU9NT01NQk1QQphCiEJAQkBCQE5yCiAgICAgIEeYlpdCSiBpQohCh4ggIE9CTU9NT01PTU9NT01PTZY
using DontPanic.TumblrSharp;
using DontPanic.TumblrSharp.Client;
using System;
namespace TumblrBotTest
{
class Program
{
static void Main(string[] args)
{