prog8/examples/test.p8
2022-03-02 20:58:38 +01:00

28 lines
381 B
Lua

%import textio
%import floats
%import test_stack
%zeropage basicsafe
main {
sub start() {
get_player(1)
|> determine_score()
|> add_bonus()
|> txt.print_uw()
}
sub get_player(ubyte xx) -> ubyte {
return xx+33
}
sub determine_score() -> ubyte {
return 33
}
sub add_bonus(ubyte qq) {
qq++
}
}