DEV Community

Selfish Dev
Selfish Dev

Posted on

Mini-Micro : Physics , Fixes and WTF

Recently, Mini Micro received its 1.2.4 update, which I like to call "Physics, Fixes, and WTF!"

This is a major update packed with game-changing improvements. One of the coolest addition is the WTF command, which I covered in detail in a this blog.

Now, let’s understand other exciting features introduced in this update!

New bounce-related math functions

The 1.2.4 update brings improvements to bounce physics, making it easier in Mini Micro!

These new set of functions has been added to /sys/lib/mathUtil

These list includes
reflect : Takes something moving in one direction and flips it like a mirror.
bounceVelocity : Tells you how fast something should bounce .
bounceOffSegment : Bounces an object off a straight line
bounceOffStaticPoly : Bounces an object off a solid shape that doesn’t move
bounceOffMovingPoly : Same as above, but the shape can move too!

breakout demo

A big question arises—how do we even use these new bounce functions when there’s no demo?

Don't worry! Your concerns have already been solved.

A brand-new Breakout demo has been added in /sys/demo/breakout.

This demo was specially designed to showcase and explain how the new bounce functions work. Unlike classic Breakout games, this version lets you move the paddle vertically as well as horizontally—giving you precise control over how the ball bounces.

My high score was 900 lets see yours.

Other improvements & bug fixes

Drag & drop file mounting

Drag folders or disk files onto the Mini Micro window to mount them. (MacOS Windows only not in linux)

New sounds for disk mounting/unmounting

Helps confirm that a disk was successfully mounted.

Customizable letterbox color (bootOpts.grfon)

Change the color of extra space around the screen for non-4:3 aspect ratios.

Other Fixes

  • Fixed memory leak when repeatedly loading images/sounds.
  • Fixed bug with TextDisplay.print removing the color property.
  • Fixed frame rate bug in Windows builds (Mini Micro now runs at a stable 60Hz).
  • Improved image scaling
  • Fixed web build sizing issue on itch.io.

Other Sources

My YouTube
Official Release blog
Mini script Wiki
Discord

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay