CHEINSTTROARLY / OWO

yes
0 stars 0 forks source link

Article #4

Open Extra-1 opened 3 years ago

Extra-1 commented 3 years ago

[quote="JonnyGamer, post:674, topic:61677"] Pop [/quote]

*[quote="JonnyGamer, post:674, topic:61677, full:true"] Hey all, here’s my first project review. I plan to make a collection of these, to spread awareness of these amazing projects so people can learn from them! I plan to make a topic or something in the form of articles

Enjoy~

Pop the Lock! 🔓

Created September 2015, by MagmaPOP Before you read on, play the project!

https://c.gethopscotch.com/p/xj3d8hyf0

Notable Stats

Components

Inspiration

Category

Description (based upon the one from the App Store)

Tap in a sequence to crack the code and pop he lock, but don’t make a mistake or you’ll have to start from the beginning. How far will you go?

The game features a classic turn based lock, and the goal is to unlock it! When the rotating dial hovers over the dot, tap your screen! But watch out, you must unlock more difficult locks, and that require more taps! If you tap incorrectly the lock resets (just like in real life)

How was this project built?

MagmaPOP is very clever, and really makes projects in a non-traditional way. I’ll be breaking down the fancy/confusing tricks, but otherwise I encourage you to take a look at the code and fiddle with it! There’s not many blocks used at all (only 105!)

The Rotating Dial

The dial on the lock is actually just a fancy Text Object containing space bars, followed by a box Unicode Character: So no math was required, just rotate the text object

When you tap the screen, the rotating dial starts rotating the other way. It never speeds up.

The Unlock Dot

Is just a bullet point . It uses sine and cosine to randomly find its position on the circular lock.

Collision detection: It’s exceedingly clever, since both the dial and dot are text objects, all you have to use to know if the dial is touching the dot, is the when bumps method, instead of more difficult math.

The Lock itself

The lock itself is trail art. Just overlapping circles. Nothing fancy.

When the lock Unlocks

When you successfully pop a lock, you can see that the lock is indeed unlocked. But what you may not know, is that a parenthesis was used for this little trick! ( It is the same color as the background, and surprisingly MagmaPOP was able to set its size, rotation, and position, to appear on the same curve as the circle. Remarkable!

end


(I may even break down the game logic itself but I’ll do that tomorrow. What do you think? Do you like it? Shall I continue?) (shall there be a dedicated topic for this?)

Extra-1 commented 3 years ago

https://awesome-e.github.io/hs-tools/play-project?id=11vbroc2g0

Extra-1 commented 2 years ago

https://c.gethopscotch.com/p/11wghq1bl3

JonnyGamer commented 2 years ago

{ "defaultValue": "", "value": "10", "key": "in", "datum": { "description": "Variable", "variable": "5F5C0F38-A878-46BF-AC1D-3320CEBF89E2-801-0000007E46BB40DF", "type": 8005 },

Extra-1 commented 2 years ago

https://awesome-e.github.io/hs-tools/play-project/?id=120l7rikzq