This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@.direction += 15; | |
@.direction -= 15; | |
# *=, /=, //=, %= would need to use point in direction block | |
# that would be a lot of implementations, considering all the different attributes, so there is abstraction needed here | |
@.direction = 90; | |
goto @gobo; | |
glide 1, @gobo; | |
point_towards @gobo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This is a utility script for use when making goboscript packages that copy+pastes the package into the test/backpack folder | |
It also updates goboscript.toml with the dependecies from test/goboscript.toml. | |
""" | |
import os | |
import argparse | |
import shutil | |
import tomllib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Module dealing with all your bezier stuffies | |
# https://pomax.github.io/bezierinfo/ | |
%include std\\geo2d.gs | |
%include std\\string.gs | |
# --- Structs --- | |
# --- Quad Bezier --- | |
func bezier2(Pt2D p0, Pt2D p1, Pt2D p2, t) Pt2D { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert_base(val, og_digits="0123456789", new_digits="0123456789"): | |
og_digits, new_digits = list(og_digits), list(new_digits) | |
og_base, new_base = len(og_digits), len(new_digits) | |
b10 = 0 | |
val = str(val) | |
for i, digit in enumerate(val): | |
b10 += og_digits.index(digit) * og_base ** (len(val) - i - 1) | |
ret = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert_base(val, og_digits="0123456789", new_digits="0123456789"): | |
og_digits, new_digits = list(og_digits), list(new_digits) | |
og_base, new_base = len(og_digits), len(new_digits) | |
b10 = 0 | |
val = str(val) | |
for i, digit in enumerate(val): | |
b10 += og_digits.index(digit) * og_base ** (len(val) - i - 1) | |
ret = '' |