Oxygen Basic

Programming => Example Code => Topic started by: Peter on August 13, 2014, 11:20:16 AM

Title: Gl Colour Cube
Post by: Peter on August 13, 2014, 11:20:16 AM
Deleted!
Title: Re: Gl Colour Cube
Post by: Mike Lobanovsky on August 13, 2014, 11:45:50 AM
Quote
Hi, that's all.

Quitting OxygenBasic again? ;)

Quote
text getscreenw()/2-70,getscreenh()/2,10,"DO YOU SEE ME?"

Sure. :)

But where's the screenshot? It's like in the Russian proverb: "Let the frost bite my ears off to spite my Mom". ;)

.
Title: Re: Gl Colour Cube
Post by: Mike Lobanovsky on August 13, 2014, 12:19:08 PM
Thanks, Peter! :)
Title: Re: Gl Colour Cube
Post by: Peter on August 13, 2014, 12:31:50 PM
it's allright.   ;D

Code: [Select]
include "asm.inc"
window 32,32,800,600

loadicon "icons/hairbal.ani"
sys z=1

while keydown(27)=0
for y=0 to 600 step 100
    for x=0 to 800 step 100
drawicon 1,x,y,100,100,z
    next
next

z +=1
if z=20 then z=0

redraw
SetFps 10
wend
winExit



.
Title: Re: Gl Colour Cube
Post by: Mike Lobanovsky on August 13, 2014, 01:09:41 PM
!!! COOL !!!  ;D


I don't know if your PC supports OpenGL 2.0 but anyway, here's how its brother might look in FBSL. :)

P.S. The zip contains an executable; no alien script stuff in it and you don't need FBSL to run it. Come on, don't be so picky. :)

.