Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
So what else is not in docs?
#1
So what else isn't in docs?

So far my list includes:
cls - which sure acts funny, apparently have to reset color and caret
keydown(keycode) - which sure would be useful 
pow#(x#, y#) - which again would have nice to know

please help and add to my list!
b = b + geberation
Reply
#2
The pow#(x#, y#) is in docs, inside math link.

for cls you must first set color then do the cls stuff and then set the color again.
example:
Code:
set color 0,0,0
cls
set color 255,255,25
sety caret 0, 0
center "something"
Reply
#3
Oh yeah, modulus! 

I knew about this from earlier experience with Naalaa, (so how did I forget pow# ?)

But someone new might not know and this one works like operator + or - or * or / not like a function.

Modulus returns the remainder part eg, 5 divided by 2 = 2 Remainder 1, so 5 % 2 returns 1.

So the % represents modulus operator, or if you want to call it the remainder operator,

Another example: 13 % 10 returns 3, as 13 divided by 10 has remainder of 3.

Code:
wln 5 % 2
'result is 1
wait keydown

(07-24-2018, 01:15 PM)cvirus Wrote: The pow#(x#, y#) is in docs, inside math link.

for cls you must first set color then do the cls stuff and then set the color again.
example:
Code:
set color 0,0,0
cls
set color 255,255,25
sety caret 0, 0
center "something"

I could not find pow# under Documents > Maths
http://retrogamecoding.org/board/index.p...1604;image

What other "inside math link" might there be?

PS I also searched the libraries for something, plenty of vector stuff! but I did not see anything on power.

I just downloaded Windows Naalaa very recently.

Oh hey!

I just added pow to my list of keywords. Now it highlights like a real command when I type it in Editor.
b = b + geberation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)