Yes, the formatting of the "article" doesn't help either.
[OLD] Ralsei's SmileBASIC Tutorial
Root / Submissions / [.]
IAmRalseiCreated:
Welcome to my SmileBASIC Tutorial.
LOCATE X,Y,Z (Z is optional) - use to locate text
COLOR Color -
==, =, !=, >, >=, < & <= - = is a version of LET from conventional BASIC, the rest are for IF, which will be explained later on == is for testing if a number value or string is a certain value or string. >= is for the same as equals except it's equal to or greater than, > is just greater than and nothing else. <= is equal to or less than. < is less than. != is NOT equal to
GCLS - clear the graphic screen
CLS - clear the console screen
END - Stops the game prematurely (before reaching the last line) or ENDs a DEF (DEFs will be in the advanced tutorial (the third one) )
FADE Color - Use THESE colors for this:
GOTO and GOSUB @labelname - use in combination with @label. GOTO - goes to the label. RETURN doesn't work. GOSUB - Same as GOTO, but RETURN works
@label - the label can be anything that doesn't include spaces. explained in GOTO and GOSUB.
RETURN - Returns to the line after GOSUB was used after using GOSUB. Not using GOSUB and this being used leads to a nasty error.
This was never finished but i'm going to make a brand new tutorial.
Good job for taking the time I guess?
Replying to:SaladFingers
There are a number of reasons why I disliked:
- you described the command by using its name. That’s not explaining, that’s repetition.
- ACLS shouldn’t be “always” used at the beginning of the program.
- END doesn’t necessarily end the program prematurely. Using END at the end of a DEF statement doesn’t end the program. STOP will end the program.
- Labels cannot be anything.
- I felt that you implied the RGB function could be used with COLOR because you mentioned it right after COLOR.
- you go from explaining how to print, to operators.
- there is no “regular BASIC.”
The built-in manual refers to a traditional BASIC
Replying to:SaladFingers
There are a number of reasons why I disliked:
- you described the command by using its name. That’s not explaining, that’s repetition.
- ACLS shouldn’t be “always” used at the beginning of the program.
- END doesn’t necessarily end the program prematurely. Using END at the end of a DEF statement doesn’t end the program. STOP will end the program.
- Labels cannot be anything.
- I felt that you implied the RGB function could be used with COLOR because you mentioned it right after COLOR.
- you go from explaining how to print, to operators.
- there is no “regular BASIC.”
There isn't exactly a traditional basic out there because of variants but there is an original.
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
gosh cool color i never knew this existed... thanks!
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
There you go! =)
EDIT: I forgot #AQUA and #SILVER.
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
#FUCHSIA is the exact same color as #MAGENTA (and it's harder to spell)
#AQUA and #CYAN are the same, too.
What's that, you want #ORANGE? nah, take these 2 duplicate colors instead...
use &HFFFF8000 I guess
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
Although custom colors could be used too...
ORANGE=&HFFFF8000
BROWN=&HFF804000
Edit: But #SILVER is merged with #GRAY and #WHITE. (#SILVER="&HFFC0C0C0")
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
Oh right, there's no brown either.
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
Or maybe more light versions:
Colors
LRED=&HFFFFC0C0 LGREEN=&HFFC0FFC0 LBLUE=&HFFC0C0FF LYELLOW=&HFFFFFFC0 LMAGENTA=&HFFFFC0FF LCYAN=&HFFC0FFFF Or a darker gray: DGRAY=&HFF404040Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
colors look better when they aren't "pure" also:
&HFFFF0000
vs
&HFFDD1100
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
How do you convert the rgb numbers into hex in sb?
Replying to:IAmRalsei
coming soon:VAR, DIM, PUSH, POP, SHIFT & UNSHIFT!
a foolish snail once said you could not add or remove elements from an array. There were wrong. let me introduce you to shift, unshift, push & pop! tney change the amount of elements in an array. WHO'S LAUGHING NOW, SNAIL_?
can i see where i said this
Replying to:IAmRalsei
coming soon:VAR, DIM, PUSH, POP, SHIFT & UNSHIFT!
a foolish snail once said you could not add or remove elements from an array. There were wrong. let me introduce you to shift, unshift, push & pop! tney change the amount of elements in an array. WHO'S LAUGHING NOW, SNAIL_?
i forgot where you said it but i remember you saying it
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
It's like:
? HEX$(#RED)
The parts are
&H A R G B
&H - Tells SB that it is hexadecimal
A - Alpha (Transparency)
R - Red
G - Green
B - Blue
Don't write it like this: &H255128640
But rather: &HFF804000
If you can't calculate decimal (what RGB uses) into hexadecimal, use:
? HEX$(Number you need).
Note: IDK if this happens to you but using a color with alpha less than &HFF it stays not-transparent (as it was &HFF the whole time.)
Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
12Me21
For me, these are the same:
FFDD1100H
FFFF0000H
•••
Well,
Who cares?
These are the same!!!
Definitely!Replying to:CyberYoshi64
Hey!
1. These "fade colors" are basically for actual graphics on the graphics screen.
2. By the way you forgot #FUCHSIA in the color codes.
You can also use RGB()
RGB(red,green,blue)
RGB(alpha,red,green,blue)
But since it's a function rather than a constant, it won't work in DATA.
Replying to:IAmRalsei
coming soon:VAR, DIM, PUSH, POP, SHIFT & UNSHIFT!
a foolish snail once said you could not add or remove elements from an array. There were wrong. let me introduce you to shift, unshift, push & pop! tney change the amount of elements in an array. WHO'S LAUGHING NOW, SNAIL_?
I really doubt someone with as much experience as Snail would say that