teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

不正な削除の打ち消し

2018/03/12 01:43

投稿

kioak
kioak

スコア20

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,84 @@
1
1
  ###前提・実現したいこと
2
2
 
3
3
  「論プロエディタ」というものを使って、学習ゲームを作っています。
4
- テキストのオブジェクトをマウスでクリックしたら次の画面(問題)が移るようにしたいのですが、このページの移り変わりをどうプログラムで表せばよいのかわかりません。どのようなプログラムで表したらよいでしょうか。単語をクリックしたら次の問題に行く感じにしたいです。
4
+ テキストのオブジェクトをマウスでクリックしたら次の画面(問題)が移るようにしたいのですが、このページの移り変わりをどうプログラムで表せばよいのかわかりません。どのようなプログラムで表したらよいでしょうか。単語をクリックしたら次の問題に行く感じにしたいです。
5
+
6
+ ##現在入力しているプログラムです(論プロエディタ)
7
+ ```
8
+ public class NewClass extends Turtle {
9
+
10
+ //起動処理
11
+ public static void main(String[] args) {
12
+ Turtle.startTurtle(new NewClass(), args);
13
+ }
14
+
15
+ //タートルを動かす処理
16
+ public void start() {
17
+ //Textturtle
18
+ { TextTurtle cyu = new TextTurtle("Could you understand proposition?");
19
+ TextTurtle lgs = new TextTurtle("Let's get started");
20
+ TextTurtle ex1 = new TextTurtle(" I'll be ready to leave ____ about twenty minutes.");
21
+ TextTurtle in = new TextTurtle("in"); //answer
22
+ TextTurtle on = new TextTurtle("on");
23
+ TextTurtle at = new TextTurtle("at");
24
+ TextTurtle ex2 = new TextTurtle("The child responded to his mother's demands ____ throwing a tantrum.");
25
+ TextTurtle with = new TextTurtle("with");//answer
26
+ TextTurtle by = new TextTurtle("by");
27
+ TextTurtle from = new TextTurtle("from");
28
+ TextTurtle ex3 = new TextTurtle(" What are the main ingredients ____ this casserole?");
29
+ TextTurtle about = new TextTurtle("about");
30
+ TextTurtle to = new TextTurtle("to");
31
+ TextTurtle of = new TextTurtle("of");//answer
32
+ TextTurtle ex4 = new TextTurtle("She has a lot of admiration ____ all that you have done.");
33
+ TextTurtle fo = new TextTurtle("for");//answer
34
+ TextTurtle on2 = new TextTurtle("on");
35
+ TextTurtle from2 = new TextTurtle("from");
36
+ TextTurtle ex5 = new TextTurtle("He always arrives ____ time.");
37
+ TextTurtle in2 = new TextTurtle("in");
38
+ TextTurtle on3 = new TextTurtle("on");
39
+ TextTurtle at2 = new TextTurtle("at");
40
+
41
+ //hide
42
+ hide();
43
+ ex1.hide();
44
+ in.hide();
45
+ on.hide();
46
+ at.hide();
47
+ ex2.hide();
48
+ with.hide();
49
+ by.hide();
50
+ from.hide();
51
+ ex3.hide();
52
+ about.hide();
53
+ to.hide();
54
+ of.hide();
55
+ ex4.hide();
56
+ fo.hide();
57
+ on2.hide();
58
+ from2.hide();
59
+ ex5.hide();
60
+ in2.hide();
61
+ on3.hide();
62
+ at2.hide();
63
+
64
+
65
+
66
+ //startscreen
67
+
68
+ {
69
+ cyu.warp(350,200);
70
+ lgs.warp(350,300);
71
+ if(lgs.contains(mouseX(),mouseY()))
72
+ { cyu.hide();
73
+ lgs.hide();
74
+ }
75
+
76
+
77
+
78
+
79
+
80
+ }
81
+ }
82
+ }
83
+ }
84
+ ```

1

誤字

2018/03/12 01:43

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,82 +1,4 @@
1
1
  ###前提・実現したいこと
2
2
 
3
- 大学の課題で「論プロエディタ(Java turtle)」というものを使って、英語を学習するゲームを作っています。
3
+ 「論プロエディタ」というものを使って、学習ゲームを作っています。
4
- テキストのオブジェクトをマウスでクリックしたら次の画面(問題)が移るようにしたいのですが、このページの移り変わりをどうプログラムで表せばよいのかわかりません。どのようなプログラムで表したらよいでしょうか。単語をクリックしたら次の問題に行く感じにしたいです。
4
+ テキストのオブジェクトをマウスでクリックしたら次の画面(問題)が移るようにしたいのですが、このページの移り変わりをどうプログラムで表せばよいのかわかりません。どのようなプログラムで表したらよいでしょうか。単語をクリックしたら次の問題に行く感じにしたいです。
5
-
6
- ##現在入力しているプログラムです(論プロエディタ)
7
- public class NewClass extends Turtle {
8
-
9
- //起動処理
10
- public static void main(String[] args) {
11
- Turtle.startTurtle(new NewClass(), args);
12
- }
13
-
14
- //タートルを動かす処理
15
- public void start() {
16
- //Textturtle
17
- { TextTurtle cyu = new TextTurtle("Could you understand proposition?");
18
- TextTurtle lgs = new TextTurtle("Let's get started");
19
- TextTurtle ex1 = new TextTurtle(" I'll be ready to leave ____ about twenty minutes.");
20
- TextTurtle in = new TextTurtle("in"); //answer
21
- TextTurtle on = new TextTurtle("on");
22
- TextTurtle at = new TextTurtle("at");
23
- TextTurtle ex2 = new TextTurtle("The child responded to his mother's demands ____ throwing a tantrum.");
24
- TextTurtle with = new TextTurtle("with");//answer
25
- TextTurtle by = new TextTurtle("by");
26
- TextTurtle from = new TextTurtle("from");
27
- TextTurtle ex3 = new TextTurtle(" What are the main ingredients ____ this casserole?");
28
- TextTurtle about = new TextTurtle("about");
29
- TextTurtle to = new TextTurtle("to");
30
- TextTurtle of = new TextTurtle("of");//answer
31
- TextTurtle ex4 = new TextTurtle("She has a lot of admiration ____ all that you have done.");
32
- TextTurtle fo = new TextTurtle("for");//answer
33
- TextTurtle on2 = new TextTurtle("on");
34
- TextTurtle from2 = new TextTurtle("from");
35
- TextTurtle ex5 = new TextTurtle("He always arrives ____ time.");
36
- TextTurtle in2 = new TextTurtle("in");
37
- TextTurtle on3 = new TextTurtle("on");
38
- TextTurtle at2 = new TextTurtle("at");
39
-
40
- //hide
41
- hide();
42
- ex1.hide();
43
- in.hide();
44
- on.hide();
45
- at.hide();
46
- ex2.hide();
47
- with.hide();
48
- by.hide();
49
- from.hide();
50
- ex3.hide();
51
- about.hide();
52
- to.hide();
53
- of.hide();
54
- ex4.hide();
55
- fo.hide();
56
- on2.hide();
57
- from2.hide();
58
- ex5.hide();
59
- in2.hide();
60
- on3.hide();
61
- at2.hide();
62
-
63
-
64
-
65
- //startscreen
66
-
67
- {
68
- cyu.warp(350,200);
69
- lgs.warp(350,300);
70
- if(lgs.contains(mouseX(),mouseY()))
71
- { cyu.hide();
72
- lgs.hide();
73
- }
74
-
75
-
76
-
77
-
78
-
79
- }
80
- }
81
- }
82
- }