Tutorial: Hot Air Balloon Animation

Start learning to program using the D2Soft Engine by writing 8 lines of code. You will learn how to animate images, add music and set a scrolling background.

Source Code

'-------------------------------------------------
' Source code for tutorial: Hot Air Balloon
'-------------------------------------------------

DIM balloon, sun AS IMAGE

BGIMAGE "bg_clouds", "move-left", 5 ' Image is 640x640 pixels
MUSIC "happy"

balloon = IMAGE "airballoon"', (20, 650)
ANIM balloon, "yoyo", (100, 150)-(100, 70), 9000
ANIM balloon, "rotate", -25, 5, 3000

sun = IMAGE "sun", (400, 10)
ANIM sun, "rotate", 25, -25, 10000


Go back to list of Tutorials.