[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!
Timing based goals (to best levels, you must tap the screen at specific time intervals)
Beginner use of sine and cosine functions.
Inspiration
Based upon the popular free 2015 iOS game of the same name.
Category
Casual Timing Based Game; Infinite Levels
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?)
[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)
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 objectWhen 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 usessine
andcosine
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?)