This file contains hidden or 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 hidden or 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 can also update goboscript.toml with the dependecies from test/goboscript.toml. | |
v1.1 | |
Last updated: 2025-03-23 | |
Gist location: https://gist.github.com/FAReTek1/7c273db51266a11942171e24394ce324 | |
""" | |
import os |
This file contains hidden or 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 hidden or 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 hidden or 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 = '' |