RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Raspbian and Node.js

    Scheduled Pinned Locked Moved Help and Support
    raspbiannode.jsgame
    6 Posts 3 Posters 477 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lynn.
      last edited by

      Hello guys,

      I’ve a situation here and am completely new (and late) into the Retropie Game. Hopefully I can get some opinions and help here!
      I’ve a HTML 5 game coded in .js and would like to adapt it on my raspberry pi. I’ve installed my Raspian and I’m not sure what my next step should be.

      Please let me know how I should go about doing it.

      The project I’m thinking of doing is to install this whole set up in an arcade machine.
      Is there any way I could set controller for this? (Joystick and buttons)
      Based on my research, I should be looking at GPIO. But I’m just not sure how we can customise the controls or install it.

      Lastly, is there function Whereby it’ll enter the game screen straight away when it’s switched on?

      I know it’s really a lot queries! But I appreciate anyone that can help me out on this!
      Thank you in advance!

      1 Reply Last reply Reply Quote 0
      • T
        Tom_Neverwinter
        last edited by

        open webbrowser of choice... open main file. run like normal webbrowser

        L 1 Reply Last reply Reply Quote 0
        • L
          Lynn. @Tom_Neverwinter
          last edited by

          @Tom_Neverwinter hello Tom!
          Thanks for your response.
          We will like to take it offline, as we’re envisioning it to be run on an arcade cabinet. (A game like Pac man)

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by mitu

            You can probably set-up something like a Kiosk mode with Chromium started on boot. See for instance https://pimylifeup.com/raspberry-pi-kiosk/. How you install your application on the Raspbian system is up to you - you have the code and the installation instructions.

            L 1 Reply Last reply Reply Quote 0
            • L
              Lynn. @mitu
              last edited by

              HI @mitu !
              I will try it out! Appreciate your response! :)
              How would you run the game file though, without browser. Is downloading Node.js the right way?

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @Lynn.
                last edited by

                @Lynn said in Raspbian and Node.js:

                Is downloading Node.js the right way?

                Probably ? I don't know what are the details regarding your game, but since you have developed it - you should know more about installing and running it.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.