エイリアンの問題を作りました2

エイリアンの問題を作りました(2回目)

# 紫のエイリアン
# 青のエイリアン
# 青紫のエイリアン
# 緑のエイリアン
# 黄色のエイリアン
# ピンクのエイリアン
# マゼンタのエイリアン
mura=None
ao=None
aomura=None
mido=None
kii=None
pinn=None
maze=None
tx,ty=200,200
rx,ry=200,200
def setup():
    global mura,ao,aomura,mido,kii,pinn,maze
    size(800,600)
    mura=loadImage(u"紫のエイリアン.png")
    ao=loadImage(u"青のエイリアン.png")
    aomura=loadImage(u"青紫のエイリアン.png")
    mido=loadImage(u"緑のエイリアン.png")
    kii=loadImage(u"黄色のエイリアン.png")
    pinn=loadImage(u"ピンクのエイリアン.png")
    maze=loadImage(u"マゼンタのエイリアン.png")
    textSize(100)
    
def draw():
    ellipse(tx,ty,40,40)
     
def keyPressed():
    global tx,ty,rx,ry

    if keyCode==UP:
        ty-=50
        if mousePressed:
            return
        ry-=30
    if keyCode==DOWN:
        ty+=50
        if mousePressed:
            return
        ry+=30
    if keyCode==LEFT:
        tx-=50
        if mousePressed:
            return
        rx-=30
    if keyCode==RIGHT:
        tx+=50    
        if mousePressed:
            return
        rx+=30
    background(100)
    if tx>315 and tx<415 and ty>215 and ty<315:
        for x in range(16):
            for y in range(12):
                image(ao,50*x,50*y)
                image(aomura,51*x,51*y)
                image(pinn,52*x,52*y)
                image(mura,53*x,53*y)
                #image(mido,54*x,54*y)
                image(kii,55*x,55*y)
                image(maze,56*x,56*y)
                textAlign(CENTER)
                text(u"いない色のエイリアンは何色",400,300)
    if tx>215 and tx<315 and ty>215 and ty<315:
        for x in range(16):
            for y in range(12):
                # image(ao,50*x,50*y)
                # image(aomura,51*x,51*y)
                # image(pinn,52*x,52*y)
                # image(mura,53*x,53*y)
                # image(mido,54*x,54*y)
                image(kii,55*x,55*y)
                image(maze,56*x,56*y)
                text(u"エイリアンの数は何体",400,300)
    if tx>415 and tx<515 and ty>215 and ty<315:
        image(ao,100,0)
        for x in range(16):
            for y in range(12):
                #image(ao,50*x,50*y)
                image(aomura,51*x,51*y)
                image(pinn,52*x,52*y)
                image(mura,53*x,53*y)
                image(mido,54*x,54*y)
                image(kii,55*x,55*y)
                image(maze,56*x,56*y)
                text(u"エイリアンの数は何体",400,300)
    

白い球を動かしてとある場所に行くとエイリアンと問題文が映ります

その問題(絶対に無理なのが1問)があなたは解けるかな?(もう1度言いますが1問無理な奴があります)

多分無理(そのとーり)

リンク
リンク

やってみろ!

答え

Kotae★

わ?

Ha★

左:330

真ん中:1,緑

右:990

右:991

コメントする