Skip to content

Commit

Permalink
update version and docs. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed May 22, 2024
1 parent 5d1c548 commit 903c554
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Docs/blog/2024-4-25-tsx-dev-intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Before diving into the actual code, we can start with a special comment that tel
We then import the necessary libraries and components. Our code editor also assists by automatically suggesting the required modules, which can be included later in the coding process:

```tsx
import { React, toNode, useRef } from 'dora-x';
import { Body, BodyMoveType, Ease, Label, Line, Scale, TypeName, Vec2, tolua } from 'dora';
import { React, toNode, useRef } from 'DoraX';
import { Body, BodyMoveType, Ease, Label, Line, Scale, TypeName, Vec2, tolua } from 'Dora';
```

Displaying an image in Dora SSR is simple, just use the `<sprite>` tag, and then instantiate it into a game object with the `toNode()` function.
Expand Down
4 changes: 2 additions & 2 deletions Projects/Android/Dora/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "org.ippclub.dorassr"
minSdkVersion 28
targetSdkVersion 34
versionCode 58
versionName "1.4.1"
versionCode 59
versionName "1.4.2"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
externalNativeBuild {
cmake {
Expand Down
8 changes: 4 additions & 4 deletions Projects/Windows/Dora/Resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ IDI_ICON1 ICON "Dora SSR.ico"
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,4,1,0
PRODUCTVERSION 1,4,1,0
FILEVERSION 1,4,2,0
PRODUCTVERSION 1,4,2,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -79,12 +79,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "IppClub"
VALUE "FileDescription", "A game engine for rapid game development."
VALUE "FileVersion", "1.4.1.0"
VALUE "FileVersion", "1.4.2.0"
VALUE "InternalName", "Dora.exe"
VALUE "LegalCopyright", "Copyright (C) 2024"
VALUE "OriginalFilename", "Dora.exe"
VALUE "ProductName", "Dora SSR"
VALUE "ProductVersion", "1.4.1.0"
VALUE "ProductVersion", "1.4.2.0"
END
END
BLOCK "VarFileInfo"
Expand Down
4 changes: 2 additions & 2 deletions Projects/iOS/Dora/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.1</string>
<string>1.4.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>58</string>
<string>59</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
4 changes: 2 additions & 2 deletions Projects/macOS/Dora/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.1</string>
<string>1.4.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>58</string>
<string>59</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ end

- **Yuescript**

The story of Yuescript, a niche language supported by Dora SSR, can be found [here](https://dora-ssr.net/blog/2024/4/17/a-moon-script-tale).

```moonscript
_ENV = Dora
Expand Down Expand Up @@ -239,6 +241,8 @@ if (sprite) {

- **TSX**

A much easier approach for building a game scene in Dora SSR. Take the tutorials [here](https://dora-ssr.net/blog/2024/4/25/tsx-dev-intro).

```tsx
import {React, toNode, useRef} from 'DoraX';
import {ActionDef, Ease, Sprite, once, sleep} from 'Dora';
Expand Down Expand Up @@ -273,7 +277,9 @@ toNode(
);
```

- Or you can write code in **Rust**, build it into WASM file named `init.wasm`, upload it to engine to run.
- **Rust**

You can write code in Rust, build it into WASM file named `init.wasm`, upload it to engine to run. View details [here](https://dora-ssr.net/blog/2024/4/15/rusty-game-dev).

```rust
use dora_ssr::*;
Expand Down
16 changes: 11 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@

- 引擎项目开发

进行Dora SSR项目开发的安装配置,详见[官方文档](https://Dora-ssr.net/zh-Hans/docs/tutorial/dev-configuration)
进行Dora SSR项目开发的安装配置,详见[官方文档](https://dora-ssr.net/zh-Hans/docs/tutorial/dev-configuration)

<br>

Expand Down Expand Up @@ -191,6 +191,8 @@ if not sprite is nil then
end
```
- **Yuescript**

有关 Dora SSR 所支持的 Yuescript 这门小众语言的故事在[这里](https://dora-ssr.net/zh-Hans/blog/2024/4/17/a-moon-script-tale)
```moonscript
_ENV = Dora
Expand Down Expand Up @@ -225,6 +227,8 @@ if (sprite) {
}
```
- **TSX**

使用 TSX 语言来创建 Dora SSR 的游戏场景是一个比较容易上手的选择。新手教程可以参见[这里](https://dora-ssr.net/zh-Hans/blog/2024/4/25/tsx-dev-intro)
```tsx
import {React, toNode, useRef} from 'DoraX';
import {ActionDef, Ease, Sprite, once, sleep} from 'Dora';
Expand Down Expand Up @@ -258,7 +262,9 @@ toNode(
</sprite>
);
```
- 也支持使用 **Rust** 来编写游戏代码,编译为 WASM 文件,命名为 `init.wasm` 再上传到引擎中加载运行。
- **Rust**

也支持使用 Rust 语言来编写游戏代码,编译为 WASM 文件,命名为 `init.wasm` 再上传到引擎中加载运行。详情见[这里](https://dora-ssr.net/zh-Hans/blog/2024/4/15/rusty-game-dev)
```rust
use dora_ssr::*;

Expand Down Expand Up @@ -293,14 +299,14 @@ fn main () {
- 等待浏览器弹出已打包项目文件的下载提示。


更详细的教程,请查看[官方文档](https://Dora-ssr.net/zh-Hans/docs/tutorial/quick-start)
更详细的教程,请查看[官方文档](https://dora-ssr.net/zh-Hans/docs/tutorial/quick-start)

<br>

## 文档

- [API参考](https://Dora-ssr.net/zh-Hans/docs/api/intro)
- [教程](https://Dora-ssr.net/zh-Hans/docs/tutorial/quick-start)
- [API参考](https://dora-ssr.net/zh-Hans/docs/api/intro)
- [教程](https://dora-ssr.net/zh-Hans/docs/tutorial/quick-start)

<br>

Expand Down
2 changes: 1 addition & 1 deletion Source/Basic/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#include <ctime>
#include <thread>

#define DORA_VERSION "1.4.1"_slice
#define DORA_VERSION "1.4.2"_slice

#if BX_PLATFORM_ANDROID
#include <jni.h>
Expand Down

0 comments on commit 903c554

Please sign in to comment.