简版步骤:
1、画好一颗流星。
2、按F8将它转换为元件。
3、鼠标右击,创建补间动画选最后一帧,拖动流星,选择你喜欢的运动路线。
4、没有4了,已经完成了。测试一下吧
一般手机上这个语言,你可以选择一些那种翻译的那种语音包的那种语言给它翻译出来,然后你就直接在里面的那个特效效果里面直接设置自己想要的这个语音的这个特效就可以了。
既然代码你也看不到,那你就做一个线状的流星图,做成动画图层呗!
你只需做一个动作,然后把它转换成影片剪辑,在从库里拖出这个影片剪辑分散到不同图层,让他们开始的时间不同,在最后一帧放个停止命令 stop();
网页流星雨 步骤一、将背景改为黑色 步骤二、贴上以下语法[code] div align="center"SPAN class="adee-bbf0-e9cd-4c6c box" id="box" MARQUEE direction=down height=150 MARQUEE direction=left scrollAmount=4 FONT color=tomato / I★/I/font/marquee MARQUEE direction=left scrollAmount=6 FONT color=orange / I★/I/font/marquee MARQUEE direction=left scrollAmount=8 FONT color=yellow / I★/I/font/marquee MARQUEE direction=left scrollAmount=10 FONT color=lightgreen / I★/I/font/marquee MARQUEE direction=left scrollAmount=12 FONT color=blue / I★/I/font/marquee MARQUEE direction=left scrollAmount=10 FONT color=skyblue / I★/I/font/marquee MARQUEE direction=left scrollAmount=12 FONT color=darkviolet / I★/I/font/marquee MARQUEE direction=left scrollAmount=8 FONT color=hotpink / I★/I/font/marquee MARQUEE direction=left scrollAmount=6 FONT color=coral / I★/I/font/marquee MARQUEE direction=left scrollAmount=10 FONT color=gold / I★/I/font/marquee /MARQUEE /span/div[/code]步骤三、可自行更改Font color(星星颜色)和scrollAmount(速度)
#include stdio.h
#include string.h
#include stdlib.h
#include conio.h#define STARNUM 2
#define STARCHAR '*'void main()
int starx[STARNUM], stary[STARNUM];
int i, dir, len;clrscr();
for( i = 0; i STARNUM; i++ ) {
starx[i] = -1;
stary[i] = -1;
}srand(time(0));
while( !kbhit() ) { for( i = 0; i STARNUM; i++ ) {
if( starx[i] == -1 random(3) == 0 ) {
starx[i] = 1+random(256)%80;
stary[i] = 1+random(256)%25;
} if( starx[i] 0 ) {
dir = 1-random(2)*2;
len = 8+random(256)%20;
while( len 0 starx[i] 0 starx[i] 80 ) {
gotoxy(starx[i]-dir*2, stary[i]);
printf(" ");
gotoxy(starx[i], stary[i]);
putchar(STARCHAR);
gotoxy(starx[i]-dir, stary[i]);
putchar('-');
delay(15000); starx[i] += dir;
len--;
} if( dir0) gotoxy(starx[i]-dir*2, stary[i]);
else gotoxy(starx[i], stary[i]);
printf(" ");
starx[i] = -1;
gotoxy(0,0);
sleep(1);
clrscr();}}
学习交流群:8721441o7
// 流星雨.cpp : 定义控制台应用程序的入口点。
#include "stdafx.h"
#includegraphics.h
#includemmstream.h
#includeconio.h
#includestdio.h
#pragma comment(lib,"winmm.lib")
#includeWindows.h
#includetime.h
#define MAXSTAR1 600
#define MAXSTAR 1000
struct STAR
int x,y,step,style;
}star[MAXSTAR];
struct STAR1
int x,y,step,color;
}star1[MAXSTAR1];
IMAGE image;
int main()
initgraph(640,640); //创建一个窗口
mciSendString("open 等你下课.mp3 alias music",0,0,0);//加载音乐
mciSendString("play music repeat",0,0,0);//播放音乐
loadimage(image,"2.jpg",640,640);
putimage(0,0,image);
while(1);//Sleep(10000);
return 0;
//星星模块
void initStar1(int i);
void moveStar1(int i);
//流行模块
void initstar(int i);
void moveStar();
void drawStar();
//初始化
void initData();
int main()
initData();
mciSendString("open 等你下课.mp3 alias music",0,0,0);//加载音乐
mciSendString("play music repeat",0,0,0);//播放音乐
while(1)
BeginBatchDraw();
cleardevice();
for(int i= 0 ;iMAXSTAR1;i++)
moveStar1(i);
moveStar();
drawStar();
Sleep(50);
EndBatchDraw();
closegraph();
void moveStar1(int i)
putpixel(star1[i].x,star1[i].y,0);
star1[i].x += star1[i].step;
if(star1[i].x 640)
initStar1(i);
putpixel(star1[i].x,star1[i].y,star1[i].color);
void initData()
srand((unsigned int)time(NULL));
initgraph(640,480);
//初始化星空
loadimage(image,"1.jpg",50,50);
int i = 0;
for( i = 0; iMAXSTAR1 ;i++)
initStar1(i);
star1[i].x = rand()%640;
//初始化流量
for(i = 0;iMAXSTAR ; i++)
initstar(i);
void initStar1(int i)
star1[i].x = 0;
star1[i].y = rand() % 480;
star1[i].step = rand()%5;
star1[i].color = RGB(star1[i].step*51,star1[i].step*51,star1[i].step*51);
//流行实现
void initstar(int i)
star[i].x = rand()%1280 -640 ; //-640 --640
star[i].y = -144;
do
star[i].step = rand()%30 +1;
}while(star[i].step5);
star[i].style = rand()%3+1;
void moveStar()
for(int i=0 ; iMAXSTAR;i++)
star[i].x += star[i].step;
star[i].y += star[i].step*0.8;
void drawStar()
for(int i= 0 ;iMAXSTAR ;i++)
switch(star[i].style)
case 1:
putimage(star[i].x,star[i].y,image,SRCPAINT);
break;
#includestdio.h
#includestdlib.h
#includetime.h
void Print(int place[25][80])//,int color[10],int star[10])
int i,j;
for(i=0;i25;i++)
for(j=0;j80;j++)
if(place[i][j]!=0place[i][j]!=-1)
printf("%c",'A'+place[i][j]-1);
else if(place[i][j]==-1)
printf("#");
else
printf(" ");
void End(int place[25][80])
int i,j;
for(i=19;i25;i++)
for(j=0;j80;j++)
if(place[i][j]==-1)
break;
if(i==25j==80)
exit(0);
void main()
int speed[10],dir[10],x[10],y[10],star[10];
int i,j;
int place[25][80]=;
srand((int)time(0));
for(i=19;i25;i++)
for(j=0;j80;j++)
place[i][j] = -1;
for(i=0;i10;i++)
x[i]=0;y[i]=rand();
speed[i]=rand()%2+1;
dir[i]=rand()%5-2;
star[i] = rand()+1;
while(1)
for(i=0;i10;i++)
place[x[i]][y[i]] = star[i];
Print(place);
for(i=0;i10;i++)
place[x[i]][y[i]] = 0;
sleep(1);//将画面停留0.1(100毫秒)秒
搞定。 我用的C++Builder XE2编译器。 增中代码: #include vcl.h #include GIFimg.hpp TGIFImage *image; 在wmain函数后部分: image = new TGIFImage(); srand((int) GetCurrentTime()); // 初始化随机数发生器 image-Width = Screen-Width; image-Height = Screen-Height; while (GetMessage(msg, NULL, 0, 0)) { TranslateMessage(msg); DispatchMessage(msg); } ShowCursor(TRUE); // 显示鼠标光标 image-SaveToFile("流星雨.gif"); delete image; 在WndProc函数处理WM_TIMER消息后面增加: BitBlt(hdc, 0, 0, cxScreen, cyScreen, hdcMem, 0, 0, SRCCOPY); { Graphics::TBitmap *bmp = new Graphics::TBitmap; bmp-Width=Screen-Width; bmp-Height=Screen-Height; BitBlt(HDC(bmp-Canvas-Handle), 0, 0, cxScreen, cyScreen, hdcMem, 0, 0, SRCCOPY); image-Add(bmp); delete bmp; } ReleaseDC(hwnd, hdc); 编译后成功。 保存的GIF文件很大,更好用Ulead GIF Animator优化一下。 需要编译后的文件 *** 我:1848447992
记得采纳啊
停火通知 0 一 停火空儿 二0 二 一年 八月 二 四日早 二 二:00- 八月 二 五日上午 一0:00 0 二 停火缘故原由 西环路窑岗嘴年夜 桥改革 工程入止DN 一000主管叙撞头,市政高压求火,市政求火段会涌现 停火征象 ,两次添压没有蒙影响。...
外国消息 起源 :光亮 日报 二0 一 七年0 七月0 四日 0 六: 一 五 A-A+ 扫一扫 脚机 浏览 尔要分享 QQ空间新浪微专腾讯微专QQ微疑 本题目 : 【砥砺奋入的五年·平易近 熟外的平易近 声】 “修筑是否 浏览的,街区是合适 安步 的,私园是...
是文字疑.那否能是个很没有错的存储办事 。觅缘义务 是 四0情缘,正常的四核电脑「便足够用了,爆米花,点卡的支出,便解释 被修正 了,分为三部门 :机位用度 带严用度 IP数目 依据 您所抉择机房路线战带广大 小的分歧 ,上面便为年夜 野具体 许多 。 公正在搭修正在境中的办事 器,梦幻西游情缘晶币...
择要 : 二0 二 一年 一 二月 三 一日(阴历 二0 二 一年 一 一月 二 八日),朴槿惠获释粉丝挥应援棒喊尔爱您。 朴槿惠获释粉丝挥应援棒喊尔爱您。朴槿惠获释刹时 :粉丝挥舞应援棒全喊“尔爱您”,年夜 妈泣如雨下 。 南京空儿 二0 二 一年 一 二月 三 一日,韩国前总统朴槿惠于本地 空...
二0 二 一地津公事 员测验 通知布告 ( 二 二0 六人)未宣布 !报名空儿: 二0 二 一年 三月 三日 八:00至 三月 九日,口试 空儿为 三月 二 七日、 二 八日。为便利 宽大 考熟相识 二0 二 一地津市考报考相闭答题,外私学育地津频叙特殊 整顿 了相闭内容,如下为 二0 二 ...
一 七日散粹:“TMD”、“SEX”是甚么意义? 二00 五年 一 一月 一 七日 一 六: 一0群众网群众日报社论古代快报:“TMD”、“SEX”是甚么意义?个文化的社会应该是严容的。如今 尔国在构修协调 社会,严容是协调 的基 一 七日散粹:“TMD”、“SEX”是甚么意义? ...