New possibility to encode/decode program files will be introduced:
PROGRAM TEXT ENCODING
smart BASIC allows you to encode text of the program. Encoded program can be run, but its text is not available for any user.
To encode program you need to:
1. Input coding password using OPTION CODEPASS command.
2. Rename program by changing file's extension from .TXT to .COD
Program file with .COD extension is a coded program. It can be run or included inside another program, but its text cannot be viewed or edited. Coded program can be decoded only if the same password is set which was used when encoding the program.
To decode already encoded program you need to:
1. Input the same coding password which was used when encoding the program using OPTION CODEPASS command.
2. Rename program by changing file's extension from .COD to .TXT
There is no need to input coding password each time when encoding or decoding. Coding password can be entered only once, and it will be saved.
4.2 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.2 version
New command will be added:
OPTION CODEPASS p$
enters password [p$] for program text encoding/decoding. Password is saved inside the device. More about program coding see in "Notes" section.
OPTION CODEPASS p$
enters password [p$] for program text encoding/decoding. Password is saved inside the device. More about program coding see in "Notes" section.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.2 version
Bug with missing skins textures after application update will be corrected.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.2 version
New music commands and functions will be added:
MUSIC m$ DELETE
deletes musical composition [m$] and releases its resources.
MUSIC m$ LOAD f$
loads musical composition [m$] from file [f$] in such formats as *.WAV, *.MP3, *.AIFF.
MUSIC m$ PLAY
starts playback of musical composition [m$].
MUSIC m$ STOP
stops playback of musical composition [m$].
MUSIC m$ TIME t
sets playback point of musical composition [m$] at [t] seconds.
MUSIC_LENGTH (m$)
returns duration of musical composition [m$], in seconds.
MUSIC_PLAYING (m$)
returns 1 if musical composition [m$] is currently playing. Otherwise returns 0.
MUSIC_TIME (m$)
returns current playback point of musical composition [m$], in seconds.
MUSIC m$ DELETE
deletes musical composition [m$] and releases its resources.
MUSIC m$ LOAD f$
loads musical composition [m$] from file [f$] in such formats as *.WAV, *.MP3, *.AIFF.
MUSIC m$ PLAY
starts playback of musical composition [m$].
MUSIC m$ STOP
stops playback of musical composition [m$].
MUSIC m$ TIME t
sets playback point of musical composition [m$] at [t] seconds.
MUSIC_LENGTH (m$)
returns duration of musical composition [m$], in seconds.
MUSIC_PLAYING (m$)
returns 1 if musical composition [m$] is currently playing. Otherwise returns 0.
MUSIC_TIME (m$)
returns current playback point of musical composition [m$], in seconds.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.2 version
New command will be added:
MUSIC m$ LOOP
starts playback of musical composition [m$], looping it infinitely.
Music will be able to play when application is in background.
MUSIC m$ LOOP
starts playback of musical composition [m$], looping it infinitely.
Music will be able to play when application is in background.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.2 version
New sample program "sfx test 2.txt" will be added to section "Music & Sounds":
Code: Select all
button 1 title "explosion" at 10,40 size 100,40
button 2 title "gun" at 120,40 size 100,40
music 1 load "files/explosion.wav"
music 2 load "files/gun.mp3"
loop:
if button_pressed("1") then music 1 play
if button_pressed("2") then music 2 play
goto loop
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.2 version
Version is feature packed and submitted to App Store.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 4.2 version
Version is available in App Store.