Stellerator

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SpiceWare

DirtyHairy has written an awesome online Atari emulator that I've been experimenting with for my site. Links for the 4 games I've setup so far:


Yep, Stellerator supports DPC+ and CDF games!

I can even play my games in my 2024 Model 3 at full speed, complete with controller support, though Tesla does need to do some work on the audio support as it's quite scratchy sounding compared to my computer - in the car I end up toggling the right difficulty switch to turn off the music in Stay Frosty 2.

IMG_5015.JPG

Except for Power, the console switches on Artie the Atari are functional, though I need to do some research to figure out why Select and Reset don't work on touch screens like they do on the computer. My web page is using onClick events for the TV Type and Difficulty switches. For Select and Reset I'm using onMousedown and onMouseup events, so that those switches can be held in the down position to support auto-advance of game varation # and such. Touch screens probably trigger different events.

Here's the API documentation for Stellerator.

And here's the setup I'm currently using for my site:
stellerator.zip

alex_79

Very cool!
I remember that years ago you could play games on your site using JStella. I'm pleased to see that feature back including the interactive "Artie the Atari", and by the fact that you're using Stellerator, which is really accurate (and the source for the TIA core ported to Stella starting from version 5.0) and supports newer cart types.

I've been following its development since when DirtyHairy announced it on AA, and it's nice to see it getting some exposure.


SpiceWare

Thanks!

Yeah JStella was pretty slick, it's a shame browsers stopped supporting applets.

I tried Stellerator in 2019 in my 2018 Model 3. The computer in that car was slower, the emulation ran about half speed, plus there was also no controller or audio support. It was playable though by using Stellerator's Touch Controls to generate joystick input.

Besides getting touch screens working for Select and Reset, I still need to figure out how to support the Power switch for Stellerator. On my JStella page I had it set so you could power down Artie, select a different game from a drop down control, then power up Artie to play it.  This would also swap out the game instructions that were below Artie on the JStella page, which I also need to add that to my Stellerator pages.

SpiceWare

#3
Made some headway during lunch on the touchscreens - added OnTouchStart and OnTouchEnd events to the Select and Reset buttons:

            <table>
                <tr><td colspan=9><img src="images/artie_top.png"></td></tr>
                <tr>
                    <td><img src="images/artie_left.png"></td>
                    <td><img src="images/artie_power_on.png"            name="power"  title="Power"            alt="Power"            </td> <!-- onClick="DoPower()"-->
                    <td><img src="images/artie_tv_color.png"            name="tvtype" title="TV Type"          alt="TV Type"          onClick="ToggleTVType()"></td>
                    <td><img src="images/artie_ld_b.png"                name="left"   title="Left Difficulty"  alt="Left Difficulty"  onClick="ToggleLeftDifficulty()"></td>
                    <td><img src="images/artie_cart_in_draconian.png"   name="cart"></td>
                    <td><img src="images/artie_rd_b.png"                name="right"  title="Right Difficulty" alt="Right Difficulty" onClick="ToggleRightDifficulty()"></td>
                    <td><img src="images/artie_select_up.png"           name="select" title="Game Select"      alt="Game Select"      onMousedown="HoldSelect()" onMouseup="ReleaseSelect()"   onTouchStart="HoldSelect()" onTouchEnd="ReleaseSelect()"></td>
                    <td><img src="images/artie_reset_up.png"            name="reset"  title="Game Reset"       alt="Game Reset"       onMousedown="HoldReset()"  onMouseup="ReleaseResetUp()"  onTouchStart="HoldReset()"  onTouchEnd="ReleaseResetUp()"></td>
                    <td><img src="images/artie_right.png"></td>
                </tr>
                <tr><td colspan=9><img src="images/artie_bottom.png"></td></tr>
            </table>

On multitouch displays like the iPad I can even hold down both Select and Reset to rapidly advance the game variation in games like Space Invaders.

Did run into one issue on my iPad - for longer single-touch holds Safari thinks you're trying to do something with the image and opens the context menu. When this occurs Stellerator thinks you're still holding down the button even after you've released it.  A quick tap on the same image causes it to be released.

I've encountered sites before that disable selection, such as when reading a review at the Video Game Critic, perhaps figuring out how that's done will fix this issue.

NOTE: I have not published this to my site, will do so after I try to fix the selection issue.


McCallister

Just played Space Rocks and Stay Frosty 2 via your website and wow, can't believe how easy it is to start playing. Sweet!

SpiceWare

Slightly better - the context menu no longer shows up, though the image can still be dragged around the screen.

SpiceWare

On the computer you can hit ENTER to toggle the game display to full-screen and back.  Figured out on a touch display you can toggle it full-screen by double-tapping the upper-left corner of the game image.


DirtyHairy


SpiceWare

#8
Thanks! RL intruded, need to get back to this to finish it up.