Oxygen Basic
Programming => Bugs & Feature Requests => Topic started by: Peter on May 25, 2016, 09:30:23 AM
-
Hi Charles,
Here's the next bug, or something is wrapped in mystery.
Actually, I always take the old GXO2.EXE, date o9.22.2o14
It makes me no banana. ;D
include "asm.inc"
Window 640,400,1
LoadImage "bmp/pic1.bmp"
LoadSprite "bmp/bird.bmp",8
single x, y=200
int w = ScrW, z
while Key(27)=0
ImageBlend 1,0,0,640,400,20
Color 255,20,25
Text 120,0,20,"Constrain Example"
y = 200+100*sin(rad(x))
Sprite 1,x,y,48,48,z
y = 200+100*cos(rad(x))
Sprite 1,x,y,48,48,z
iF Constrain(x, 0, w) >0
x +=2
Else
x = 0
End iF
z +=1: if z=8 then z=0
Redraw
Wait 20
Wend
WinEnd
.
-
Hi Peter,
I had no problems running this example with gxo2 or co2, from my E: drive. Could the original bas file contain any null characters?
-
Hi Charles,
Could the original bas file contain any null characters?
No.
All the files are empty or not found.
But with OXYIDE does it work.
-
Hi Peter,
I have not encountered any path problems with gxo2 or co2. Oxide can use either compilers, which it invokes using the full pathname in quotes.
Various ways to invoke gxo2.exe:
make an association between .o2bas scripts and gxo2.exe, then you can double-click on any o2bas script to run it.
Run from IDE: Oxide or Scite.
Drag scripts onto the gxo2 icon or a gxo2 shortcut.
Drag script onto the upper part of the Oxide window.
Use directly from the console, or a batch file.