Score
0
Watch 25 Star 104 Fork 12

Gitee星球的小活动 / 第 0 届 代码编故事接力赛

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
让我们点燃程序员写作之魂,一人用代码写一段故事玩玩吧~ spread retract

Clone or download
js-MarvelousTour 983 Bytes
Copy Edit Web IDE Raw Blame History
hsiacool authored 2020-03-24 13:39 . add js-MarvelousTour.
// 编程语言:js
// 故事主题:奇妙遨游
function Story(){
var oneStory = Object();//定义一个故事
var date = new Date();
oneStory.time = date.getFullYear()+date.getMonth()+1+date.getDate();//故事发生的时间-今天
oneStory.dog = 'bule';//故事主角狗狗布鲁
oneStory.room.open();//房间门被打开
oneStory.Windy();//门口刮起了大风
oneStory.dog.think('汪!风好大,好想出去玩!');//狗狗心想
oneStory.dog.walk();//狗狗走出门
oneStory.RedLight.show();//一道红光乍现
oneStory.dog.say('汪,我怎么飞起来了!');
oneStory.dog.bottom = 0;//狗狗离地0米
setInterval(function(){
oneStory.dog.bottom = oneStory.dog.bottom+1;
},1000);//狗狗被红光吸起来,每秒上升1米
oneStory.dog.think('?????????');
//... 接下来交给你们了
}
function think(msg){
console.log(msg)
}
function say(msg){
alert(msg)
}

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/Selected-Activities/Code-relay.git
git@gitee.com:Selected-Activities/Code-relay.git
Selected-Activities
Code-relay
第 0 届 代码编故事接力赛
master

Help Search

220309 7019f5b6 1899542 220318 4015cbb9 1899542