2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

かわくだりゲームをプチ改造スピードアップ&ダウンキャラ追加

Posted at

image.png

#内容
IchigoJamといえばHelloWorldに匹敵するかわくだりゲーム
そのかわくだりゲームをプチ改造スピードアップ&ダウンキャラ追加してみました

#解説
矢印ブロックを追加し、当たり判定を行っているSCR部分の判定を追加しました

#コード
5 W=15
10 CLS:X=15
20 LC X,5:?"0"
30 LC RND(32),23:?"*"
31 LC RND(32),21:?"上矢印"
32 LC RND(32),22:?"下矢印"
35 WAIT W
36 X=X-BTN(28)+BTN(29)
38 IF SCR(X,5)=ASC("上矢印") W=W+5:LC 1,3:?"SPEED DOWN!":GOTO20
39 IF SCR(X,5)=ASC("下矢印") W=W-5:LC 1,3:?"SPEED UP!":GOTO20
40 IF SCR(X,5)=0 GOTO 20

image.png

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?