Skip to content

Instantly share code, notes, and snippets.

View tobspr's full-sized avatar
💭
I may be slow to respond.

Tobias tobspr

💭
I may be slow to respond.
View GitHub Profile
const fs = require("fs");
const path = require("path");
function fixFile(filepath) {
const contents = fs.readFileSync(filepath, "utf-8");
const matcher = /([0-9]+(?:\.[0-9]+)?)rem/igm;
const result = contents.replaceAll(matcher, (substr, size) => {
const rem = Number(size);

Wires & Energy Pitch 01

This is a summary of my current thoughts about wires! It contains a lot of smaller surveys, which you can then vote in the #surveys channel for!

For example, if there is an [A] then you can click the A reaction in discord to vote for it!

Vote in the #surveys channel of the Official Discord.

Wires vs Energy

basic

Day health damage speed range attackInterval
0 20 0.01 1.50 0.90 1.50
1 20 0.01 1.50 0.90 1.45
2 20 0.01 1.50 0.90 1.42
3 20 0.01 1.50 0.90 1.38
4 20 0.01 1.50 0.90 1.36
5 25 0.03 1.50 0.90 1.33
6 25 0.03 1.50 0.90 1.31
/* eslint-disable */
/*
Webworker to update the consumer network.
Recieves workload messages from the main thread and responds once a solution
has been found.
*/
import Phaser from "phaser-ce"
// Super fast sprite. No rotation, no scale, no tint - only position and alpha
// Can only be used with the super fast renderer
export class FastParticleSprite {
constructor(texture) {
this._texture = texture.baseTexture
from __future__ import print_function
import math
from panda3d.core import *
from direct.interval.IntervalGlobal import Sequence
from RenderTarget import RenderTarget
from __future__ import print_function
import math
from panda3d.core import *
from direct.interval.IntervalGlobal import Sequence
from RenderTarget import RenderTarget
from __future__ import print_function
import math
from panda3d.core import *
from direct.interval.IntervalGlobal import Sequence
from RenderTarget import RenderTarget
from __future__ import print_function
import math
from panda3d.core import *
from direct.interval.IntervalGlobal import Sequence
from RenderTarget import RenderTarget
from __future__ import print_function
import math
from panda3d.core import *
from direct.interval.IntervalGlobal import Sequence
from RenderTarget import RenderTarget