![]() |
Nothing Found :(
✂️ - 29 - Tweaking SmileBASIC
Blog
29th August 2025
A few tweaks to how a couple of semi-important things work..
-=-=- First up, a rebrand (already) The new SmileBASIC collection is going to be called "JNKBox", not "JayBox", because I realised that most of the SmileBASIC players on Twitter are used to me being "JNK", so I figured I'd stick to that as a brand, rather than "JayBox". .. I still like JayBox, and think it rolls off the tongue better than JNKBox, but.. Maybe JNKPlay would be better? But that's a bit close to JNKPlat.. I mean, it's literally one key to the left! So, no, JNKBox.. I think. Thoughts in the comments/Discord! As far as coding the achievements go, I've created what I've named "Achievement Buckets" .. Because I couldn't think of a better way to name it that wouldn't be confusing!! ![]() The values being... ID : Gotta give each accomplishment an ID. I could probably skip that and automatically set them, if I'm completely honest, but where's the fun in that!! Numbers are fun!! Name : The name of the goal. I'm keeping these short.. A bit WarioWare like in their snappiness, so that hopefully most players can figure them out, even if most of my SmileBASIC players tend to be Japanese!!!.. When I do re-implement this in JSE, I'll probably add an extra descriptive element. Target : The value of the goal. Collect 5 items, score 500 points, etc, etc. Bucket : The achievement handler will check in the specified bucket, and if bucket value>=Target, then it'll trigger the achievement. Hard : JNKBox can handle Easy, Normal and Hard. They show up as green, yellow or red. I'd have to rethink this for JSE. .. More Colour! Icon : The number of the icon that represents the achievement. You can see in this pic from yesterday, that each achievement uses the same badge in a different colour (depending on the Hard value), and then the Symbol overlaid on top. The symbol is this icon number. (Though note that I rearranged the Score achievements in the code screenshot above, so that everything now fits the 4-in-a-row layout a bit better) There's also a Min and Max value for each achievement. This will hopefully become important later, if I can wrangle my way through the logic of it all. Because every game is pseudo-randomly generated, and we can use Today's Date as the generator, I'm thinking it might be nice to have a Daily Challenge on the titlescreen. It would, in essence, pick a game, generate a level for today, then pick a single Achievement with a random target between the Min,Max values, and that would be today's challenge.. This is why I've opted to implement the achievements right from the start, so that I don't have to backtrack and redo all of this stuff later! ... Anyway, back to the code. ![]() AchieveSet Bucket,Value Or alternatively Achieve Bucket,AmountToAdd And, that's pretty much it. Once Bucket>=Target, the little popup shows up at the top of the screen, and the Achievement is flagged as having been earned. It's really quite a simple and effective way to do it, if I'm honest, and I'm not sure what stopped me from implementing it into JSE. .. Except the whole "if your save disappears, which it does a fair bit in the browser, you'll be cheesed off at losing all your achievements" thing, of course. Maybe I shouldn't worry about that as much as I tend to. Meanwhile...Not even released, yet, but I've already added a second game. *tsk* Typical JNK! But, boy am I glad that I did, because my framework wasn't working right, and all the scores overwrote each other! Crazy crazy juggling act, here!!! Build games, build framework. .. At least I'm not having to write the language, too! Anyhoo, "Just Snake" is going to be joined by "Just Skiing", and I think I might stick with this "Just" mentality for a bit, because I like how silly it is! ![]() Can't go wrong with a Skiing game, right? And... is that Horace?! I mean, it wasn't intentional, but it sure does look like Horace! ![]() You can see it as the head of the Snake in Just Snake, too, and it's kind of a weird thing that I stumbled upon when checking that the Randomise Seed generator was working properly. I got it to draw a silly little "face-ish" for every possible "Start" name, and sort of fell in love with the result. ![]() (Old screenshot, by the way. It's called Just Snake, now! OMG, TEH BETA!!) So it's there as the head of the snake, and it's also the skier. ... Maybe it'll show up elsewhere, too. Who knows. Kinda cool that you can put your name, or your D.o.B, or whatever into the game, and .. bingo.. that's your avatar. I kinda like that, and might build it up a little more in future. A.I. CornerLyrics : By me Sound Imported : Antisocial Interference > Reveal 🔎 | Download | Suno LinkAlternative versions | Download | Suno Link | Download | Suno Link | Download | Suno Link | Download | Suno Link | Download | Suno Link | Download | Suno Link | Download | Suno LinkSung by Suno ![]() "Cartoon Derek (Solo) finds himself whistling his favourite 1970s sitcom theme tune, as he hears it on the TV. (Solo, No Text)" by DrawThings / Flux > Reveal 🔎 Views 19, Upvotes 0
Daily Blog
,
Smilebasic
,
Chaos
|