Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightre committed Feb 14, 2024
1 parent a7e9363 commit bf64c74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ Then write a [sence](./tutorial.md#Sence). This scene has an additional `preload
class MainSence extends Sence {
preload(){
engine.loader.baseUrl = "."
// 加载一个资源
// "jump" 是资源id,"jump.mp3"是资源的路径
// Load a resource
// "Jump" is the resource ID, and "jump. mp3" is the path to the resource
engine.resource.loadAudio("jump","jump.mp3")
}
create() {
// 创建一个根节点
// Create a root node
const root = new Container()

return root
Expand Down

0 comments on commit bf64c74

Please sign in to comment.