3.2 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
3.2 version
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"
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"
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
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 */
You can comment block of text by surrounding it with symbols /* and */, for example:
/* comment begin
comment end */
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
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].
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].
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
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.
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.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
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.
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.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
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.
SPRITE n$ ADD k$
adds contents of sprite with name [k$] to contents of sprite with name [n$], thus creating multi-frame sprite.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
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$].
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$].
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
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.
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.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
New command will be added:
SPRITE n$ PLAY
starts animation for multi-frame sprite [n$]. Animation cycles once and then stops.
SPRITE n$ PLAY
starts animation for multi-frame sprite [n$]. Animation cycles once and then stops.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.2 version
New command will be added:
SPRITE n$ STOP
stops animation for multi-frame sprite [n$].
SPRITE n$ STOP
stops animation for multi-frame sprite [n$].