Tutoriel : Carte de Noël animée
Écrivez une belle carte numérique animée pour votre famille et vos amis. Essayez différents graphismes et musiques.
Code source
'-------------------------------------------------
' Source code for tutorial: Animated Christmas Card
'-------------------------------------------------
DIM flake1, flake2, flake3, flake4 AS IMAGE
DIM img1 AS IMAGE
DIM txt1, txt2 AS TEXT
SET VOICE "jenny"
VOICE "Merry Christmas"
MUSIC "xmas_mix", 40 'Try: xmas_mix, xmas_tune, xmas_megamixie, xmas_chip, xmas_amiga, xmas_93, xmas_2dx
' Background effects like snow
bgimage "bg_xmas_snow_blue"
flake1 = IMAGE "xmas_flake"
ANIM flake1, "move", (100, -100)-(150, 700), 10000
ANIM flake1, "scale", 100, 90, 2000
flake2 = IMAGE "xmas_flake"
ANIM flake2, "move", (150, -100)-(200, 700), 15000
ANIM flake2, "scale", 60, 50, 3000
flake3 = IMAGE "xmas_flake"
ANIM flake3, "move", (450, -100)-(500, 700), 20000
ANIM flake3, "scale", 80, 70, 4000
flake4 = IMAGE "xmas_flake"
ANIM flake4, "move", (520, -100)-(570, 850), 12000
ANIM flake4, "scale", 70, 60, 2000
txt1 = TEXT "Merry Christmas! ", (5, 10), "font1", 90
COLOR txt1, #FF3334, #ffffff, 5
ANIM txt1, "yoyo", (5, 10)-(15, 10), 2000
img1 = IMAGE "xmas_reindeer" 'Try: xmas_reindeer, xmas_penguin, xmas_santa, xmas_snowman
ANIM img1, "yoyo", (375, 150)-(375, 160), 2500
txt2 = TEXT "Dear John,\n\nWishing you a season full of light and laughter for you and your family.\n\nWith love,\n Betty", (10, 140), "font4", 42, #000000, "fade-in", 4000
COLOR txt2, #000000, #ffffff, 3
MAX WIDTH txt2, 400
Retour à la liste des tutoriels.