The framework's being written .. Mostly.. from scratch.
..I couldn't be bothered rewriting the jRand() function, so copy+pasted it from the old version! But other than that, everything's fresh and new and redone from scratch, mostly so I can try doing a few new and interesting things with it, and also learning from what I do, and maybe crossing that back over to JSE. Who knows.
So, I started with getting the sprite function working correctly, and from there got the Particles working.
These are mostly the same as you get in JSE. DrawImg x,y,image (But with SmileBASIC, things are 100% colourable.. Man, how I wish we could have that in JSE) ThrowParticle x,y,type,direction,speed,image,hue
\o/yeay\o/!
I had to write an image handler, and particle handler, and coded all the different Particle types that I have in JSE.
I added a AddImage which draws an "additive blend" edition, and GlowImage which.. tries to make a glowy version (but doesn't do a very good job of it, yet! I'll keep tweaking that)
Then I headed over to do Text, and remembered that in the last framework I had to draw my own bitmap font.
... I could either copy+paste the old one, or redo from start.
.. So I redid from start, and copied the Amstrad font pixel by pixel!
Took bloomin' ages, so it did, but now I can stick text on the screen at different sizes and such.. Text x,y,"Text",centered
Everything's coming together lovely.
I might see about adding TextStyle, too. Why not!
Next will be adding controls and such, and then figuring out the best way to do audio. Using the default sounds, or see about somehow porting JSE's new audio generation code across.
Hmmmm..
[chorus]
Smile, [beat] Smile, for the Basic, smile. (woo)
I'm coding the games (yeah) that people can play, yeah (woo)
Smile, [beat] Smile Basic's my engine, smile. (woo)
I do it on my Switch with just a U.S.B. Keyboard. (it's wireless, oooh)
[break]
[verse]
I'm working on a framework that'll work upon the Switch,
It'll run inside Smile Basic, and will run quite well in it.
I can draw four thousand sprites without it taking any breath,
And can alpha and rotate them all and scale to any depth.
Woo
Maybe I should try to do something I've not before.
But how I'm going to code all that I am not really sure.
Still, at least my framework's running fast, and nothing seems awry.
So I'll make some classic games that play within my trademark style.
Woo
[chorus]
Smile, [beat] Smile, for the Basic, smile. (woo)
I'm coding the games (yeah) that people can play, yeah (woo)
Smile, [beat] Smile Basic's my engine, smile. (woo)
I do it on my Switch with just a U.S.B. Keyboard. (it's wireless, oooh)
[break]
[verse]
Sprites of every size and shape, but only if I draw them,
They're only sixteen pixels wide and sixteen high a well.
But scale them up and join them all, and soon you'll have a beast,
That run around the levels and disrupting all the peace.
(Woo)
The letters can rotate but then the lines that they're on don't.
There's a lot of cheating lines that lie around inside my code. (yeah)
I maybe could add features like the Text Style that I made - yesterday... (yeah yeah yeah yeah)
[beat] Maybe later? Woo!
[chorus]
Smile, [beat] Smile, for the Basic, smile. (woo)
I'm coding the games (yeah) that people can play, yeah (woo)
Smile, [beat] Smile Basic's my engine, smile. (woo)
I do it on my Switch with just a U.S.B. Keyboard. (it's wireless, oooh)
[bridge]
I wonder what games I might make in my brand new framework? (diddle dee dee, diddle dee dee)
I'm not sure if it's a good idea to redo games I've done, before. (de de de, diddle dee dee, diddle dee dee, woo)
I guess the only way that I know the sorts of games that I make, (diddle diddle dee, diddle diddle dee)
Is to make the very games and to see where they go to. (dee, dee, dee, dee, deeee. Wooo!)
[chorus]
Smile, [beat] Smile, for the Basic, smile. (woo)
I'm coding the games (yeah) that people can play, yeah (woo)
Smile, [beat] Smile Basic's my engine, smile. (woo)
I do it on my Switch with just a U.S.B. Keyboard. (it's wireless, oooh)
Int. Dave's Games and ScrunchCakes
[Greenie is in full bunny costume with the modified head, complete with water cooling system and holding an oversized water bottle. Dave is across the shop floor, testing.]
Dave: [shouting] HOW ABOUT NOW?!
Green: Yes, David, I can still hear you just fine. You don't need to shout.
Dave: BUT THE AUDIO QUALITY-
Green: It's still perfect. Like the last seventeen times you shouted.
Dave: We need to be sure! What if it picks up interference?
Green: The only interference is from the Arcade cabinets which currently sound like they're blasting directly into my eardrums.
Dave: [shouts towards the door] OK, now Barbara, you whisper something.
[Barbara is outside the store.]
Barbara: [whispering] My pelican has five beaks.
Green: My pelican has five beaks.
Dave: [fiddling with controls] No, that can't be right. ..
Green: Gah! TURN IT DOWN!
Barbara: [shouts] No, that's what I said.
[Mrs Thompson enters]
Mrs Thompson: Have you got it working yet?
Green: [shouting whilst holding onto his bunny ears] He's trying to make me deaf.
Dave: The sensitivity just needs adjusting! Like when I fixed that keyboard-
Green: Oh god, not the keyboard story.
Mrs Thompson: David, perhaps we should stick to the cooling system for now?
Dave: Oh yeah, is it cool, Greenie?
Green: [still shouting] Yes its cool. You managed that, at least.
Dave: See, I can fix anything!
[Feedback suddenly screeches through the system]
Green: ARGH! [tries to remove head]
Dave: No, wait! I can fix it!
Mrs Thompson: David, step away from the controls...
[End Credits Roll]
Views 474, Upvotes 15
Daily Blog
,
Smilebasic
New games every week!
Places
Archives
Site credits : Jayenkai put all his heart and soul into everything you can see on this site.
(c) Jayenkai 2023 and onwards, RSS feed
7
Blog - ✂️ - 05 - SmileBASIC - Text (no style) - AGameAWeek