Code Challenge 01 - 4.26.2024

I encourage all to participate in these coding challenges. It is great for practice and learning multiple ways to tackle issues. Please make all submissions compatible with the ZIM editor.

For the first coding challenge can you make an object that follows the cursor but is constrained inside of a container. Here is my pure HTML/JavaScript example.

Extra Points:

  1. Make the container shape a polygon:▲★♥
  2. Add damping / smoothing / delay to the following object.
  3. Fun effects when the object touches the edge of the container or a is on a certain side.

Have fun and get coding with ZIM!!!

2 Likes

Sounds exciting!

1 Like
1 Like

Code Challenge 01, here we gooooo!!!!

Here is my entry. Where is everyone at?

2 Likes

ooo - that runs really smoothly. Often with odd shapes as you drag it stops and does not slide along the odd shape. Ahhh... clever - I see what you have done.

1 Like

@abstract :wink: Yeah I ran into that problem.

1 Like

next challange make it bounce with colors the way you see it into the video


at 00:32
https://youtu.be/XEzRZ35urlk?list=PL590L5WQmH8doPo8OufXavO2Qu4ysZjyl

@karelrosseel82 I think you posted the wrong video. But that looks like plinko. That could be our next challenge. We need more people submitting their code.

1 Like

ah yes I found the idea

so now in ZIM :slight_smile:
so kids can learn counting