Skip to main content

Dora Start!

1. What is Dora SSR?

Dora SSR Intro

A Short Introduction

Dora SSR is a game engine for rapid development of games on various devices. It has a built-in easy-to-use Web IDE development tool chain that supports direct game development on mobile phones, open source handhelds and other devices.

2. Installation

  1. Download and install the APK package on the game's running terminal.

  2. Run the software and access the server address displayed by the software through the browser of the PC (tablet or other development device) in the LAN.

  3. Start game development.

3. Write the Game

  1. Step One: Create a new project
    • In the browser, right click on the menu "Workspace" of the resource tree on the left side of the Dora Dora editor.
    • Click the New menu item, select "New Folder", and name it Hello.
  2. Step Two: Write the game code
    • Create a new game entry code file in the project folder, select the Lua language (or Teal, TypeScript, YueScript), and name it init.
    • Write the code:
Hello/init.lua
-- import modules
local Sprite <const> = require("Sprite")
local Node <const> = require("Node")
local Move <const> = require("Move")
local Ease <const> = require("Ease")

-- create the root node of the game scene tree
local root = Node()

-- create a sprite
local sprite = Sprite("Image/logo.png")

-- mount the sprite to the root node
sprite:addTo(root)

-- register for click events to move the sprite
root:onTapBegan(function(touch)
sprite:perform(
Move(
1, -- duration in seconds
sprite.position, -- start position
touch.location, -- end position
Ease.OutBack -- easing function
)
)
end)
  1. Step Three: Run the game

Click the 🎮 icon in the lower right corner of the editor, then click the Run menu item. Alternatively, press the Ctrl + r key combination.

4. Publish the Game

  1. Open the right-click menu of the newly created project folder in the game resource tree on the left side of the editor.
  2. Click the Download option and wait for the browser to prompt for downloading the packaged project file.