**tutorial snippits**

(general movement)

```
:Zstandard
:104→Xmax
:72→Ymax
:Zinteger
:1→A
:1→B
:Repeat K=21
:getKey→K
:line(A,B,A,B,not(K
:min(94,max(0,A+sum(Δlist(K={24,26→A
:min(62,max(0,B+sum(Δlist(K={34,25→B
:End
```

(collision detection)

```
:sum(Δlist(K={25,34
:A+Ansnot(pxl-Test(A+Ans,B→A
```

**my current code**

```
:Zstandard
:104→Xmax
:72→Ymax
:Zinteger
:Horizontal 0
:Horizontal 62
:Vertical 0
:Vertical 94
:47→A
:31→B
:Repeat K=45
:getKey→K
:line(A,B,A,B,not(K
:sum(Δlist(K={24,26
:A+Ansnot(pxl-Test(A+Ans,B→A
:sum(Δlist(K={34,25
:B+Ansnot(pxl-Test(A,B+Ans→B
:End
```

When going right, my movement piece gets stuck about halfway between the starting point and the right wall.

When going up, my movement piece goes straight through the wall.

The collision detection works for both moving left and moving down.

What did I do wrong here? I don't get it..