Babies love mazes.

For discussion of xTalk topics related to education.
User avatar
richmond62
Posts: 3297
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Now we need to set up a FINISH target for the maze.

So, please import this image into your stack:
-
target.png
target.png (3.3 KiB) Viewed 499 times
-
Set its location, and rename it 'target'.
-
m42.png
m42.png (148.71 KiB) Viewed 498 times
-
Remember to save your work.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3297
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Now we must input code to STOP our man going THROUGH the walls of our MAZE.

Remember we made all the bricks in our MAZE into a [b]GROUP[/b] called 'walls'.

Now we can use the INTERSECT term to check if our man is crossing walls:
-
m43.png
m43.png (157.62 KiB) Viewed 497 times
-
You will see 'exit to top': this is to STOP any further code executing.

Now we can use INTERSECT again to check when our man hits the finish target.

But, to make things a bit more exciting please import the following image into your stack:
-
win.png
win.png (360.52 KiB) Viewed 495 times
-
Change its name to 'win', and make it INVISIBLE:
-
m44.png
m44.png (297.2 KiB) Viewed 491 times
-
Remember to save your work.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3297
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Now we can input code to check if our man has hit the target:
-
m45.png
m45.png (221.41 KiB) Viewed 490 times
-
Now we need to put a bit more code in the RESET button so users can restart the game:
-
m46.png
m46.png (101.96 KiB) Viewed 490 times
-
Remember to save your work.
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3297
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Here is the completed exercise:
Attachments
MAZE.oxtstack.zip
(371.65 KiB) Downloaded 36 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3297
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

And here we are in action!
-
441619952_1897353044009801_1836406838943655124_n.jpg
441619952_1897353044009801_1836406838943655124_n.jpg (219.53 KiB) Viewed 478 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3297
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Babies love mazes.

Post by richmond62 »

Luckily for me my 7 year old 'victim' gave me some useful feedback:

"When the man turns he doesn't turn, so I don't know where he's going."

So, here is an improved version that 'turns' the man:
-
SShot 2024-06-07 at 12.20.20.png
SShot 2024-06-07 at 12.20.20.png (13.94 KiB) Viewed 464 times
-
SShot 2024-06-07 at 12.22.36.png
SShot 2024-06-07 at 12.22.36.png (120.12 KiB) Viewed 464 times
-
Attachments
MAZE.oxtstack.zip
(392.63 KiB) Downloaded 28 times
https://richmondmathewson.owlstown.net/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests