123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|419|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Rebuilding the Browsercade

Mon, 16 Jun 2025, 08:45
Jayenkai

Rebuilding the Browsercade


Today, I took a great big sledgehammer and walloped the Browsercade firmly and with intent.
*SMASH*

It's been AGES since I made a Browsercade game. Rollin' Rubber was back in May 2023, and in the world of AGameAWeek, that's a whole lifetime ago.
At some point, JSE got fast enough that I started building my arcadey style games in there, instead of bothering with Browsercade at all, and it all got left behind as a result.

So, today, I opened up the code and did the first thing that anyone else would do.
I replaced 90% of Browsercade's Engine.js code with JSE's Engine.js code.

Keep in mind that JSE is originally built from Browsercade, and that the JSE Engine.js code is originally a copy and paste from there, but everything from that point went in one direction, and one direction alone.
Everything, all the past few years of optimising and tweaking and fixing up..
It all went into JSE, and not back into Browsercade.

So, when I copied it back..
Well.. Here's a quick alignment test with a circle and some text centred on the screen.



Oh no.

... I have a lot to rebuild.
And, this is just a quick test. This isn't even "All the games".. Each of which is bound to have a myriad of stupid little alignment quirks and breaks, and all sorts.
This might take some time.

-=-=-
''Load, Next List!''
Mon, 16 Jun 2025, 09:19
Pixel_Outlaw
I would think you'd want functions though to help keep things modular with JSE.
Mon, 16 Jun 2025, 09:29
Jayenkai


Yeah, a whole big lump of drawing functions have now been copy+pasted (with SO many fixes!) back into Browsercade from JSE.
It's much more aligned now.
...
But that's just the alignment test.

I know in my heart that every single game in the Browsercade was coded with these old alignment quirks in mind, so I'm pretty much going to have to backtrack and fix every single one of them.
.. 60+ games.
Should be simple!

(And why is the background now flat black instead of the colour it was, earlier.. Uhoh!!)

-=-=-
''Load, Next List!''
Mon, 16 Jun 2025, 18:38
Kuron
@Jay. Awesome and speaks to the power and universality of JSE.

I wasn't joking when I said Spider Basic license is up for renewal and I may skip it and just delve into properly learning JSE. Can easily code in JSE on my Orange Pi 800 or any device.

JSE is so much like what us old farts were using back in the day before it was called retro coding.
Tue, 17 Jun 2025, 01:51
realtime
Is the browsercode engine still exists and maintened.

-=-=-
me blog: fork-garden
Tue, 17 Jun 2025, 03:45
Jayenkai
It exists, of course, but I pretty much abandoned it once JSE started to take shape properly, and because JSE needed to be .. um.. let's say "usable!".. I had to fix up all these little quirks.

In my game code for Browsercade, I would adjust for the misalignments pixel by pixel. It worked, but only because all the code was mine and I didn't really have to care about other people ever trying to code with it!
But JSE couldn't have issues like that, so I took the time to make everything better, faster, neater, and then the past couple of years of optimising, too. None of that went back into the Browsercade engine.
It's actually quite slow, at this point.
If I wrote an identical game in the raw-Javascript that browsercade runs, vs the same game in JSE, right now, then the JSE one would actually run smoother.
.. Which isn't good!!!

Most of that is down to the old drawing code that Browsercade uses, and that's where all the misalignments and other things crop up.

So, yeah, it's still here, but it's not been maintained for a good couple of years.
And a couple of years in the world of Browser Enhancements might as well be a lifetime.

-=-=-
''Load, Next List!''