Steps
Table
of Contents
The Interface
Guide subsection offers five examples of operation with the interface objects.
These objects include the list, the menu, the local menu, the dialog box
and the dialog box with an editing field. These examples are designed so
that every subsequent example includes the functionality of the previous
one:
-
Step1 - creation of the minimum container
program capable of functioning on your Cybiko computer. It serves as a frame for
all Cybiko applications.
-
Step2 - an exit from the program through
the "Do you really want to quit?" dialogue is added to the
previous step.
-
Step3 - the stub elementary dialog box
is added to the previous step. Stub appears upon clicking on the local
menu items.
-
Step4 - the local menu of the previous
step causes the appearance of the list and menu objects upon clicking.
Menu and list items cause the appearance of the elementary dialog box -
stub.
-
Step5 - the list object of the previous
step is modified so that its items could be added through the dialog box
with an editing field. All the rest remains unchanged.
In addition, an
example is provided that demonstrates serial port communications.
All examples
are placed in the 'demos/tutorials' directory.
The
serial port is a native part of the Cybiko computer. The Cybiko SDK provides
an API for serial port access. All API functions are implemented in ComPort.dl.
This library must be present on your Cybiko computer for the interface to work properly.
The
"serial" tutorial shows some basic methods of accessing a serial port,
including initialization and data reading and writing.
The
example is placed in the 'demos/tutorials' directory.
The Dynamic Library tutorial demonstrates interaction between
an application and a dynamic library. To run this tutorial, you must
upload both dynapp.app and dynamic.dl to your Cybiko computer first.
The
example is placed in the 'demos/tutorials' directory.
Please, study the
Interface Guide part before working with the Graphics Effects and Sound
part. The previous subsections contain the information, which is necessary
for understanding this subsection.
Almost all Cybiko applications are
graphics. Therefore, the Graphics Effects and Sound subsection gives examples
of operation with elementary graphics objects (pixel, line, filled and
blank rectangles) as well as with complex graphics objects - bitmaps. An
example of operation with sound and vibration is also provided.
The example is placed in the 'demos/tutorials'
directory.
Complete
Applications
This part provides
sources for the completed and fully-functional applications: Tic-Tac-Toe,
Highway Hitman, Fox Hunting, CySpider and Lizard Luncheon.
|
Highway Hitman game is an overhead, side-scrolling
road battle for one player. The object of the game is to destroy as many
other vehicles as possible, while avoiding being pushed off of the road.
More Information...
|
|
Tic-Tac-Toe is a 2-player strategy game
(hot seat, or against the Cybiko). The object of the game is to be the
first player to claim 3 squares, horizontally, vertically, or diagonally.
More Information...
|
|
Fox Hunting is a logical game. The aim
of this game is to retrieve foxes hiding all over the game board.
More Information...
|
|
CySpider is a single player game. The
ultimate goal is to pass as many levels as you can. You control a spider
that can move on the playing field in different directions. Your object
on each level is to capture as much of playing field as possible by cutting
off pieces of the screen and spinning a web on each part.
More Information...
|
|
Lizard Luncheon is a single player game.
The object of the game is to eat all the flies in each level in order to
pass to the next level and prevent the lizard from starving to death. For
each fly that you eat, you will get 1 point. The
number of flies increases in each next level.
More Information...
|
You
might already have these applications on your Cybiko computer. If not,
you can download them from our
site. All functional aspects of these sources have commentaries. If
any fragment of these sources is unclear, you should look through the two
previous parts, notably Interface Guide and Graphics Effects and Sound.
Or, look through the appropriate sections of the Cybiko SDK.
All
examples are placed in the 'demos' directory.
© 1999-2001. Cybiko, Inc. All rights reserved. More information...