Page 1 of 2
3.2 version
Posted: Wed Dec 18, 2013 9:17 am
by Mr. Kibernetik
New coding rule will be added:
Assignment operation like:
A = A + B
can be written shorter:
A += B
for any numeric math operation or for string concatenation operation. Thus, code:
C *= D + E
A$ &= "Text"
is equivalent to:
C = C * (D + E)
A$ = A$ & "Text"
Re: 3.2 version
Posted: Fri Dec 20, 2013 3:31 pm
by Mr. Kibernetik
New way to comment code will be added:
You can comment block of text by surrounding it with symbols /* and */, for example:
/* comment begin
comment end */
Re: 3.2 version
Posted: Fri Dec 20, 2013 6:37 pm
by Mr. Kibernetik
Command LIST FONTS will be upgraded:
LIST FONTS
prints list of available fonts to the screen.
LIST FONTS TO a$,n
saves list of available fonts to string array [a$] and size of returned array to numeric variable [n].
Re: 3.2 version
Posted: Sat Dec 21, 2013 4:39 am
by Mr. Kibernetik
New graphics command will be added:
GRAPHICS SAVE x,y, w,h TO n$
saves to file [n$] the part of graphics screen, which is located at coordinates [x], [y], having width [w] and height [h]. Valid image file types are: JPG, PNG. If file extension is not set then PNG file type is used.
Re: 3.2 version
Posted: Sun Dec 22, 2013 7:57 am
by Mr. Kibernetik
Stability of application will be improved.
New commands will be added:
SORT m
sorts numeric or string one-dimensional array [m]. By default sorting is performed in ascending order, case sensitive.
SORT m AS n
sorts numeric or string one-dimensional array [m] and outputs sorting result as one-dimensional numeric array of indices [n], which indicate elements in array [m] in a sorted order. OPTION BASE command affects starting value in array [n].
SORT m TO n
sorts numeric or string one-dimensional array [m] and saves sorting result to array [n]. Types of arrays [m] and [n] must be identical.
OPTION SORT ASCENDING
OPTION SORT DESCENDING
OPTION SORT INSENSITIVE
OPTION SORT SENSITIVE
sets sorting of command SORT to be in ascending, descending, case insensitive or case sensitive order.
Re: 3.2 version
Posted: Tue Dec 24, 2013 1:42 am
by Mr. Kibernetik
New command will be added:
SPRITE n$ ADD k$
adds contents of sprite with name [k$] to contents of sprite with name [n$], thus creating multi-frame sprite.
Re: 3.2 version
Posted: Tue Dec 24, 2013 6:46 pm
by Mr. Kibernetik
New command will be added:
SPRITES m$ LOAD f$, x,y
loads image (sprite sheet) with name [f$], creates from it [x] sprites horizontally and [y] sprites vertically, and saves their names to one-dimensional string array [m$].
Re: 3.2 version
Posted: Tue Dec 24, 2013 10:10 pm
by Mr. Kibernetik
Command SPRITE LOAD will have modification:
SPRITE n$ LOAD f$, x,y
creates multi-frame sprite with name [n$] from the contents of image file (sprite sheet) [f$] which contains [x] sprites horizontally and [y] sprites vertically. Valid image types are: JPG, PNG, BMP, GIF, TIF, ICO, CUR, XBM.
Re: 3.2 version
Posted: Wed Dec 25, 2013 12:35 pm
by Mr. Kibernetik
New command will be added:
SPRITE n$ PLAY
starts animation for multi-frame sprite [n$]. Animation cycles once and then stops.
Re: 3.2 version
Posted: Wed Dec 25, 2013 3:35 pm
by Mr. Kibernetik
New command will be added:
SPRITE n$ STOP
stops animation for multi-frame sprite [n$].