-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Welcome! This guide will help you set up your development environment and start creating your first game with our lightweight game engine.
Before you start, make sure you have the following:
- A modern web browser: LiteForge-Evo works best with recent versions of Chrome, Firefox, or Edge.
Check out this page and download the latest stable release or use this link to directly run it in your web browser.
Open LiteForge-Evo:
Launch LiteForge-Evo in your web browser through this link or using the file you downloaded.
Click on the “New Project” button in the main menu. You can see it after you click create in the side menu bar. Now you should have entered into the engine.
Familiarize yourself with the canvas, asset manager, and scripting panels. Drag and drop sprites onto the canvas to start building your game scene.
Click on the “Visual Scripting” button on the top banner.
Drag blocks from the toolbox onto the workspace to create game logic. Connect blocks to define the flow of your game.
Click the “Preview” button to test your visual script and see how it affects your game.
Navigate to the “JavaScript” button on the top banner. Write Your Code:
Use the built-in editor to write and edit your JavaScript code. Click the “preview” button to test your JavaScript code.
LiteForge-Evo now features a dedicated API to simplify game interactions with concise and efficient code.
Explore the LFJS documentation for detailed guidance and examples:
LFJS Documentation
Running Your Code:
As told above, just click the “Preview” button to execute your codes and test your game.
Click on the “Scene Editor” button on the top banner. Click the circle button on the right end of the banner that just appeared. Use the “NewSprite” button to add images to your project. Currently the engine is only supported with image assets only. For an animated sprite, you can use a .gif.
After you have imported your asset, it would automatically get created on the canvas below and on the object panel there should be a rectangular panel that represent your object.
If you want to remove the assets you just added, you can click the red "X" mark on the right end of the rectangle representing your object.
Click on the button with 3 lines on the left end of the top banner. Now click on the “Export” button and then click on “Export To PC” button to download the game you just created. You would download a .LFE file.
Follow the same steps as saving your game but instead of clicking “Export To PC”, click “Export As HTML” option to generate HTML files for distribution. You would download the HTML files as a .zip file.
"LiteForge-Evo" MIT LICENSED (2024)