3.2 version

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

3.2 version

Post 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"

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post 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 */

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post 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].

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post 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$].

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post by Mr. Kibernetik »

New command will be added:

SPRITE n$ PLAY
starts animation for multi-frame sprite [n$]. Animation cycles once and then stops.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.2 version

Post by Mr. Kibernetik »

New command will be added:

SPRITE n$ STOP
stops animation for multi-frame sprite [n$].

Post Reply