Coding<Salamander's prototypes

I decided to make a prototype based on The Legend of Zelda: Minish Cap. It only took 10-15 minutes, and has some potential.
VADGXNVAOUsize-test_20231102224058.zip (35.0 KB)


Tiny player sprite:
Screenshot 2023-11-02 at 7.00.50 PM
Normal player sprite:
Screenshot 2023-11-02 at 7.02.31 PM

2 Likes

New prototype!

I made a simple pathfinding AI that can adapt to the environment.
(It can move left, right, and up, so you cannot make it go down)


So, for instance, in a room like the one above, it would take this path:

Download it:
MDBXIXFJERAI_20231106185819.zip (32.2 KB)

Code:

on draw do
MoveY = event.py
MoveX = event.px
XPX = event.px
XPX2 = event.px
CPY = event.py
end

on load do
movement = "MinusX"
call "movement"
end

on movement do
wait 0.25 then
MoveY -= 1
BlockY = name MoveX,MoveY
if BlockY=="white" then
goto MoveX,MoveY
elseif BlockY=="black" then
MoveY += 1
call "sideMovement"
end
call "movement"
end
end

on sideMovement do
if movement=="MinusX" then
call "sideMovementMinus"
elseif movement=="PlusX" then
call "sideMovementPlus"
end
end

on sideMovementPlus do
XPX2 += 1
BlockX2 = name XPX2,CPY
if BlockX2!="black" then
goto XPX2,MoveY
else
movement = "MinusX"
end
end

on sideMovementMinus do
XPX -= 1
BlockX = name XPX,CPY
if BlockX!="black" then
goto XPX,MoveY
else
movement = "PlusX"
end
end