Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8130659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:48:12+00:00 2026-06-06T08:48:12+00:00

I am making an HTML5 game engine. There is only one file that is

  • 0

I am making an HTML5 game engine. There is only one file that is supposed to be included in the HTML file, which is engine.js. That script is supposed to create a global Engine object that can be used in other scripts by the user. The Engine object is a wrapper for all classes and functions in the engine, but, I would like to separate the engine into different files. I think that it would be a bit sloppy if the were all supposed to be included by the user, so how can I have the engine.js include the automatically?

(Something like require() in Node.js.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:48:14+00:00Added an answer on June 6, 2026 at 8:48 am

    Take a look at RequireJS. It is a library which fits your requirements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a game engine using HTML5 canvas, and I have decided to
I'm making a spot-the-difference game in HTML, CSS + Javascript, but one of the
I'm making an HTML5 game. Is there anyway to provide the user with a
I'm making a game with HTML that uses a lot of the keys on
I am wondering if there is any technique out there for making HTML code
I am interested in making some sort of HTML page that displays the name
I am making a game in an HTML web page. How would I add
I'm making a sort elements web game using jQuery, HTML & CSS. While everything
I'm making an HTML5 tech demo for work in which a user can drag
My problem: I'm making an HTML5 game and am attempting to make it faster

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.