• Hey! Register here to create your account, engage with the community, and talk about what is new!

%cpu and %tps for text and things like that.

UntoldEntity

New member
Overlord
Joined
Dec 24, 2020
Messages
27
Reaction score
3
So, I was working on a plot w/ TheMinesYT and he was adding a action bar that says the CPU. He wrote "CPU: %cpu" of course this didn't work because it isn't a thing, so I was thinking, what if it was? I just think it would be useful for a lot of game devs to use.
 

bumpy

Forum adept
Overlord
Joined
Oct 6, 2020
Messages
113
Reaction score
35
not needed at all...
adding a set var before the action bar isn't difficult nor space consuming. why specifically TPS and CPU? why not something like %gv?
 

stinkey

Forum adept
Joined
Sep 8, 2020
Messages
225
Reaction score
74
yeah and then we should make all game values % selectors
after this, since we already have %math and %index we might as well just make all the codeblocks % codes
once we do this this truly paves the way for a text-based df
we could even have c-like syntax in % codes, like
Code:
%int %foo %= %123 %;
%int %f %(%int %x) %{
    %return %x %* %2 %;
}
in fact, we should just remove df and replace it with c or java or something
C:
#include <stdio.h>

int f(int x) {
    return x * 2;
}

int main() {
    int foo = 123;
    printf("%d", f(foo));
    return 0;
}
this would greatly improve performance and versatility
 
Top Bottom