New games every week!
JSE - Minor Additions Blog
19th May 2021
Nothing major, today.

-=-=-

Maths



A few standard maths commands.
Exp, Log and Log10 work as they've always done, and if you can figure them out, then fair play to ya!

The Powers(a,b) command makes use of the Log command to work out "How many powers of a to make b"
eg..
Powers(4,16) would be 2.. 4 times 4 is 16
Powers(2,32) would be 5.. 2 times 2 times 2 times 2 times 2 is 32

Not sure when and where you'd need that, but it could come in handy!

There's also a Trunk command to go alongside the Round,Ceil and Floor.
Basically Trunc "truncates" the number, chopping off any decimal places, leaving only the Int value, without doing any rounding.

Inkey



There's now an Inkey command, which returns the character of the last key pressed, for most of the keyboard except shift/control/backspace/etc.
repeat a=inkey if a<>"" then Print a forever


Is that it?!



How has that taken up half a day!?
Well, I've also been sifting through the Blitz2D and BlitzMax command lists, jotting down more possible commands for the future, as well as tidying up the Project List a little more.

If you've any specific commands you'd like to see, (classic or imaginatively new) be sure to let me know what they are, and I'll try my best to fathom a way to make them happen!
Views 114, Upvotes 16  
Jse , New Commands
New games every week!
Site credits : All of the above : Jayenkai
(c) Jayenkai 2023 and onwards, RSS feed 4

Blog - JSE - Minor Additions - AGameAWeek