From 3d1ca385070951846db2dddb81faa0522f047513 Mon Sep 17 00:00:00 2001 From: baidwwy Date: Thu, 28 Apr 2022 06:13:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=8D=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../04-\345\243\260\351\237\263/.vscode/ggerun.lua" | 10 +++++----- .../04-\345\243\260\351\237\263/lua/main.lua" | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git "a/examples/01-\345\237\272\347\241\200/04-\345\243\260\351\237\263/.vscode/ggerun.lua" "b/examples/01-\345\237\272\347\241\200/04-\345\243\260\351\237\263/.vscode/ggerun.lua" index 5444649..3584dcc 100644 --- "a/examples/01-\345\237\272\347\241\200/04-\345\243\260\351\237\263/.vscode/ggerun.lua" +++ "b/examples/01-\345\237\272\347\241\200/04-\345\243\260\351\237\263/.vscode/ggerun.lua" @@ -1,10 +1,11 @@ -- @Author : GGELUA -- @Date : 2022-01-17 02:57:37 -- @Last Modified by : baidwwy --- @Last Modified time : 2022-01-22 14:19:27 +-- @Last Modified time : 2022-04-28 06:12:27 -print('ggerun',arg[1]) -if arg[1]=='android' then +print('ggerun', arg[1]) +复制文件('assets/test.mp3', './assets/test.mp3') +if arg[1] == 'android' then 编译目录('ggelua') 编译目录('./lua') -- for path,rel in 遍历目录('./data') do @@ -15,5 +16,4 @@ if arg[1]=='android' then -- end 写出脚本('./assets/ggelua') else - -end \ No newline at end of file +end diff --git "a/examples/01-\345\237\272\347\241\200/04-\345\243\260\351\237\263/lua/main.lua" "b/examples/01-\345\237\272\347\241\200/04-\345\243\260\351\237\263/lua/main.lua" index 2cf45a7..7a51541 100644 --- "a/examples/01-\345\237\272\347\241\200/04-\345\243\260\351\237\263/lua/main.lua" +++ "b/examples/01-\345\237\272\347\241\200/04-\345\243\260\351\237\263/lua/main.lua" @@ -1,7 +1,7 @@ -- @Author : GGELUA -- @Last Modified by : baidwwy -- @Date : 2022-03-23 10:09:27 --- @Last Modified time : 2022-03-23 10:55:57 +-- @Last Modified time : 2022-04-28 06:12:32 local SDL = require('SDL') 引擎 = @@ -11,8 +11,9 @@ local SDL = require('SDL') 高度 = 600, 帧率 = 60 } + function 引擎:初始化() - music = require('SDL.音乐')('../../../assets/test.mp3'):播放(true) + music = require('SDL.音乐')('assets/test.mp3'):播放(true) end function 引擎:更新事件(dt, x, y) -- GitLab