Skip to content

Commit cfd916c

Browse files
committed
更新apk
1 parent 373e93f commit cfd916c

File tree

2 files changed

+5
-53
lines changed

2 files changed

+5
-53
lines changed

README.md

Lines changed: 5 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ scheme-lib 是一个scheme使用的库。目前支持android mac linux windows
2222
# android
2323
## 新手入门
2424
### 环境安装 手机版
25-
1. 先安装[scheme-release-1.4.apk][1]
26-
2. 下载scheme-lib 的packages和apps到 手机/sdcard/org.evilbinary.chez/目录下
27-
3. 在run界面里面输入代码
25+
1. 先安装[scheme-release-1.5.apk][1]
26+
2. 点击下载app库和package库
27+
3. 下载成功后点击运行计算机demo或者直接打开apps里面的应用demo点击运行
2828

2929
```scheme
3030
(load "/sdcard/org.evilbinary.chez/apps/game-plane/game-plane.ss")
@@ -35,54 +35,6 @@ scheme-lib 是一个scheme使用的库。目前支持android mac linux windows
3535

3636
<img src="https://raw.githubusercontent.com/evilbinary/scheme-lib/master/data/screenshot/m-game.png" width="350px" />
3737

38-
### 环境安装 pc版
39-
1. 先安装[scheme-release-1.4.apk][1]
40-
2. 将手机连接电脑,开启adb调试模式(需要安装adb命令,不会用goolge)。进入`cd scheme-lib/android/src/packages`,在shell下执行`python sync.py`命令,这样每次修改后,会自动同步packages下的代码到手机`/sdcard/org.evilbinary.chez/lib`目录下面,这样方便运行了。
41-
3. 在run界面里面输入测试代码。比如:
42-
43-
```scheme
44-
(import (test) (gles1) (glut) )
45-
(load "/sdcard/org.evilbinary.chez/lib/apps/hello.ss")
46-
```
47-
### demo例子
48-
```scheme
49-
;imgui例子
50-
;imgui hello,world
51-
(define (imgui-test-hello-world)
52-
(glut-init)
53-
(imgui-init)
54-
(imgui-scale 2.5 2.5)
55-
(glut-touch-event (lambda (type x y)
56-
(imgui-touch-event type x y)
57-
))
58-
(glut-key-event (lambda (event)
59-
(imgui-key-event
60-
(glut-event-get event 'type)
61-
(glut-event-get event 'keycode)
62-
(glut-event-get event 'char)
63-
(glut-event-get event 'chars))
64-
(if (= 4 (glut-event-get event 'keycode ))
65-
(begin (imgui-exit)
66-
(glut-exit)))
67-
))
68-
(glut-display (lambda ()
69-
(imgui-render-start)
70-
;(imgui-test)
71-
(imgui-set-next-window-size (imgui-make-vec2 200.0 140.0) 0)
72-
(imgui-begin "evilbinary" 0)
73-
(imgui-text "hello,world")
74-
(imgui-end)
75-
(imgui-render-end)
76-
))
77-
(glut-reshape (lambda(w h)
78-
(imgui-resize w h)
79-
))
80-
(glut-main-loop)
81-
        (imgui-exit))
82-
```
83-
84-
运行效果如下:
85-
8638
<img src="https://raw.githubusercontent.com/evilbinary/scheme-lib/master/data/screenshot/helloworld.png" width="350px" />
8739

8840
### 测试配置
@@ -95,7 +47,7 @@ scheme-lib 是一个scheme使用的库。目前支持android mac linux windows
9547
</map>
9648
```
9749

98-
2. `adb push config.xml /sdcard/org.evilbinary.chez/conf/config.xml`
50+
2. `adb push config.xml /sdcard/org.evilbinary.chez/scm/conf/config.xml`
9951
3. 打开scheme app就可以直接运行啦。
10052

10153
## 高级篇
@@ -134,5 +86,5 @@ scheme-lib 是一个scheme使用的库。目前支持android mac linux windows
13486
(display (add 100 1234))
13587
```
13688

137-
[1]: https://raw.githubusercontent.com/evilbinary/scheme-lib/master/data/apk/scheme-release-1.4.apk "scheme apk"
89+
[1]: https://raw.githubusercontent.com/evilbinary/scheme-lib/master/data/apk/scheme-release-1.5.apk "scheme apk"
13890
[2]: https://github.com/evilbinary/data/blob/master/pic/scheme-lib-2.0-win32.zip "scheme-lib-2.0-win32.zip"

data/apk/scheme-release-1.5.apk

7.17 MB
Binary file not shown.

0 commit comments

Comments
 (0)