73

Dear mobile game devs. When I play games like that, I always wonder if it's the physics engine that's actually random and produces the result?

Or is the result calculated before the animation happens, and dictates the animation?

I've always wondered. I have some notion of programming, but from far back, and I've been scratching my head long enough about this.

Thanks in advance.

you are viewing a single comment's thread
view the rest of the comments
[-] Nibodhika@lemmy.world 7 points 9 months ago

The easy way if doing this is just using a physics engine and calculate the result depending on where the ball lands. Prototyping a game like that would take me a few hours probably.

That being said if the game asks for money to do anything it's highly unlikely that that's what it's doing, instead it's probably choosing your result based on how much do they want you to win and then calculate a path for the ball that gets this result.

Something that makes it difficult to do this second alternative is if you have some semblance of control, e.g. if you choose the strength to use for the ball or something, that makes it slightly trickier to pull off because you're against the clock on finding a path and might end up with an unrealistic move (however if those round things make the ball kick around like they do on a pin all machine they can be used to set the course you want).

Long story short it's easier to do the animation deciding the result but if the game asks for money in exchange for anything in-game it's more profitable to do the results deciding the animation.

[-] fidodo@lemmy.world 1 points 8 months ago

I know this game, this is a mini game within the main game and I'm not actually sure how they make money since they have no ads and they shower you with so many power ups that I've never come close to running out. I guess lots of players are just bad at the game so they need to buy power ups? This particular mini game doesn't have any pay to win mechanics, you get balls by beating levels in the main game so it's just there to encourage reengagement.

It's a standard match 3 game but I play it as a fidget game since there are no ads and the levels are reasonably beatable with the tons of power ups they give you.

this post was submitted on 02 Feb 2024
73 points (95.1% liked)

Ask Lemmy

26646 readers
1524 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS