###前提・実現したいこと
「論プロエディタ」というものを使って、学習ゲームを作っています。
テキストのオブジェクトをマウスでクリックしたら次の画面(問題)が移るようにしたいのですが、このページの移り変わりをどうプログラムで表せばよいのかわかりません。どのようなプログラムで表したらよいでしょうか。単語をクリックしたら次の問題に行く感じにしたいです。
##現在入力しているプログラムです(論プロエディタ)
public class NewClass extends Turtle { //起動処理 public static void main(String[] args) { Turtle.startTurtle(new NewClass(), args); } //タートルを動かす処理 public void start() { //Textturtle { TextTurtle cyu = new TextTurtle("Could you understand proposition?"); TextTurtle lgs = new TextTurtle("Let's get started"); TextTurtle ex1 = new TextTurtle(" I'll be ready to leave ____ about twenty minutes."); TextTurtle in = new TextTurtle("in"); //answer TextTurtle on = new TextTurtle("on"); TextTurtle at = new TextTurtle("at"); TextTurtle ex2 = new TextTurtle("The child responded to his mother's demands ____ throwing a tantrum."); TextTurtle with = new TextTurtle("with");//answer TextTurtle by = new TextTurtle("by"); TextTurtle from = new TextTurtle("from"); TextTurtle ex3 = new TextTurtle(" What are the main ingredients ____ this casserole?"); TextTurtle about = new TextTurtle("about"); TextTurtle to = new TextTurtle("to"); TextTurtle of = new TextTurtle("of");//answer TextTurtle ex4 = new TextTurtle("She has a lot of admiration ____ all that you have done."); TextTurtle fo = new TextTurtle("for");//answer TextTurtle on2 = new TextTurtle("on"); TextTurtle from2 = new TextTurtle("from"); TextTurtle ex5 = new TextTurtle("He always arrives ____ time."); TextTurtle in2 = new TextTurtle("in"); TextTurtle on3 = new TextTurtle("on"); TextTurtle at2 = new TextTurtle("at"); //hide hide(); ex1.hide(); in.hide(); on.hide(); at.hide(); ex2.hide(); with.hide(); by.hide(); from.hide(); ex3.hide(); about.hide(); to.hide(); of.hide(); ex4.hide(); fo.hide(); on2.hide(); from2.hide(); ex5.hide(); in2.hide(); on3.hide(); at2.hide(); //startscreen { cyu.warp(350,200); lgs.warp(350,300); if(lgs.contains(mouseX(),mouseY())) { cyu.hide(); lgs.hide(); } } } } }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/24 06:07