How do I launch graphics samples from the command line? #234
JudgeGroovyman
started this conversation in
General
Replies: 1 comment 2 replies
-
You have several version of SmallBASIC:
sbasicg (SDL2-version) can be run from command line and will then open a window on the desktop: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What command line options do I use to launch the graphics samples
SmallBASIC/samples/distro-examples/graphics
from the command line?Some Background
I have sbasic installed and it runs some of the text games in the samples
SmallBASIC/samples/distro-examples/games
but I can't get any of the graphical demos to run from the command line?What I tried
I was able to run a few of them with sbasici but its crashing now so I want to rely on the command line.
I looked in the docs with no luck but please lmk if I missed the key documentation about this.
I also saw the output of sbasic -h and tried some of that don't know what any of it means or how to use it to launch these programs.
sbasic 3dtorus.bas
nothing happened. When I ransbasic -v 3dtorus.bas
I got this output 3dtorus.bas.error.txtsbasic ball.bas
similar story. When I ran it with -v I got this output (which is very similar to 3dtorus.bas output) ball.bas.error.txtsbasic plasma.bas
does nothingsbasic maze.bas
just outputs a zerosbasic Fractal_Tree.bas
does nothingsbasic Colors.bas
does nothing and i have to ctrl-cnone of the programs in that folder have run at all so I must be doing something wrong.
What I am running
This is my sbasic version:
SmallBASIC version 12.27 Console Unix_64 Thu, 31 Oct 2024 - use -h for help
I'm on M1 macbook air 2020 Sonoma 14.5 with 16GB ram and ~8GB free space
Beta Was this translation helpful? Give feedback.
All reactions