User Interface Extension Library Usage Example 3.

The following example is a variation of my previous CorelSCRIPT game Arcanoid with new graphic interface.

demo3.gif (1920 bytes)

Drag horizontal slider and the racket will follow it.

The BuildPreview creates the game field by drawing a filled rectangle (the racket) and circle (the ball):

SUB BuildPreview
BeginImage Width,Height,0
	ImageFillRect Pos-rx\2,Height-ry-2,Pos+rx\2,Height-2,RGB(255,0,0)
	ImageFillEllipse x,y,x+cx,y+cy,RGB(255,255,255)
EndImage ImageFile$
MainDialog.Preview.SetImage ImageFile$
END SUB

[ <Previous page | Next Page> ]


[ Learning CorelSCRIPT | Oberon Home Page ]

Copyright 2000 by Alex Vakulenko. All rights reserved.
This page was last revised on 01/13/00.