Gnome2::Score(3)
π NAME π
Gnome2::Score β bestie, it's literally the score-keeping module for your GNOME games, no cap π
It's a Perl module, it's part of the whole Gnome2 situation, and it's documented in the User Contributed Perl Documentation corner of the manual pages. We're doing the deep dive together, so grab a snack π
β¨ METHODS β¨
Okay so here's the whole roster of methods, and I'm gonna walk you through every single one like we're on FaceTime π
πΈ integer = Gnome2::Score->init ($gamename)
Bestie, this one spins the whole thing up. Call it with:
$gamenameβ a string, aka the name of your game. That's the whole vibe check it needs.
It hands you back an integer. β¨
πΈ integer = Gnome2::Score->log ($score, $level, $higher_to_lower_score_order)
Not me logging scores like it's my job (it literally is). The args are:
$scoreβ a double, so yes, decimals are invited to the party π$levelβ a string, for when your game has levels, obvi$higher_to_lower_score_orderβ a boolean, which is the "do big numbers win or do smol numbers win" switch π
Returns an integer. π
πΈ list = Gnome2::Score->get_notable ($gamename, $level)
The "who ate and who didn't" method, fr fr. Give it:
$gamenameβ a string$levelβ a string
And what you get back is a list. More specifically: it returns a reference to an array per player, containing the name, the score and the score time. π
Okay bestie, heads up: that's the whole return description, so don't come for me asking for more detail β I only know what the page tells me, iykyk π
π SEE ALSO π
Gnome2β the mothership, go say hi π«Ά
π COPYRIGHT π
Copyright (C) 2003-2004 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2 for a full notice. π
And that's the whole page, bestie!! π This lil doc was brought to you by perl v5.42.0, dated 2025-07-25, and it's the Gnome2::Score(3) manual page β slay, stay hydrated, and go log some high scores π
β¨ππ¦
π¦ where this page comes from
- fedora 43: perl-Gnome2 1.048-18.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms