Finally, you can sit down and write:
gr()
color = "red"
plot(10, 10)
click on "Run" and see the result.
To see what a total novice do - this is her first GScript BASIC
program - take a look:
http://retromaccast.ning.com/photo/photo/show?id=1672786%3APhoto%3A28941
Except for a save command (I still don't know how to do this properly
in web), now this has become the tool I have always want - sit down
and write a Lores or Super Hires program, without any prior
knowledge.
Give it a try! You can simply select any script and see the listing
and result at the same time, and modify it and run to see the changes.
To download a local version (recommended):
http://virtualgs.larwe.com/gsbasic.zip
Works for Safari and Firefox.
Phew! And I thought there were no more revisions for today!
(Just kidding! ;-)
bye
Marcus
I just do an update this morning (but since I don't want to do another
announcement, so remains 1.3...) with the following changes:
- iPhone / iPod touch support: custom UI for iPhone / iPod touch
- auto redirection to iPhone / iPod touch
- UI changes to reflect the load/run/new is associate to the editor
window
I am now working on adding events to the language so we can do some
sort of Lores painting program... it will be cool to see what will
Lores + event driven programming looks like.
This is how the current event listener codes look like:
// Lores Doodle
gr()
inverse()
print(" Lores Doodle ")
normal()
print("Double click to clear screen.")
draw = false
listen("mousedown")
listen("mousemove")
listen("mouseup")
listen("dblclick")
// Handle mouse down event
function mousedown(event) {
draw = true
color = rnd(15) + 1
mousemove()
}
// Handle mouse move event
function mousemove() {
if (draw)
plot(mousex, mousey)
}
// Handle mouse up event
function mouseup() {
draw = false
}
// Handle double click event
function dblclick() {
gr()
}
Try it at: http://virtualgs.larwe.com/gsbasic/index.html
GScript BASIC is the JavaScript library for Apple II programmers.
Have fun!
Now able to load and save program (only 1 at the moment as I don't
want to make it too confusing) directly in the browser. This is good
for testing codes.
Now tested working under Google Chrome.
This version added audio support to now just Safari, but also to
Safari 3 and Google Chrome. MIDI file is also now supported.
Keyboard event is now supported under Firefox and Google Chrome. New
commands like asc() and chr() are now supported. When clear screen,
hires text will now be removed.
If you are using Safari, Firefox or Google Chrome and love Apple II
style programming:
http://virtualgs.larwe.com/gsbasic/
Lores example by a first time programmer:
http://virtualgs.larwe.com/gsbasic/run.html?file=birthday (you can run
it direct)
http://virtualgs.larwe.com/gsbasic/scripts/birthday.js