add
This commit is contained in:
parent
7e0a9cba0b
commit
772ad415ee
8
awesomeProject/.idea/.gitignore
vendored
Normal file
8
awesomeProject/.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
9
awesomeProject/.idea/awesomeProject.iml
Normal file
9
awesomeProject/.idea/awesomeProject.iml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="Go" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,5 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
</profile>
|
||||
</component>
|
8
awesomeProject/.idea/modules.xml
Normal file
8
awesomeProject/.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/awesomeProject.iml" filepath="$PROJECT_DIR$/.idea/awesomeProject.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
4
awesomeProject/.idea/vcs.xml
Normal file
4
awesomeProject/.idea/vcs.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings" defaultProject="true" />
|
||||
</project>
|
8
awesomeProject/awesomeProject/.idea/.gitignore
vendored
Normal file
8
awesomeProject/awesomeProject/.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
9
awesomeProject/awesomeProject/.idea/awesomeProject.iml
Normal file
9
awesomeProject/awesomeProject/.idea/awesomeProject.iml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="Go" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
awesomeProject/awesomeProject/.idea/modules.xml
Normal file
8
awesomeProject/awesomeProject/.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/awesomeProject.iml" filepath="$PROJECT_DIR$/.idea/awesomeProject.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
7
awesomeProject/awesomeProject/go.mod
Normal file
7
awesomeProject/awesomeProject/go.mod
Normal file
@ -0,0 +1,7 @@
|
||||
module awesomeProject
|
||||
|
||||
go 1.23.1
|
||||
|
||||
require github.com/go-sql-driver/mysql v1.8.1
|
||||
|
||||
require filippo.io/edwards25519 v1.1.0 // indirect
|
4
awesomeProject/awesomeProject/go.sum
Normal file
4
awesomeProject/awesomeProject/go.sum
Normal file
@ -0,0 +1,4 @@
|
||||
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
||||
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
|
||||
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
|
12
awesomeProject/awesomeProject/leves/uploaded_level_file.txt
Normal file
12
awesomeProject/awesomeProject/leves/uploaded_level_file.txt
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"level_name": "第一关",
|
||||
"difficulty": "easy",
|
||||
"enemies": [
|
||||
{"type": "goblin", "count": 10},
|
||||
{"type": "troll", "count": 2}
|
||||
],
|
||||
"boss": {
|
||||
"type": "dragon",
|
||||
"health": 5000
|
||||
}
|
||||
}
|
12
awesomeProject/awesomeProject/leves/xxxxsss
Normal file
12
awesomeProject/awesomeProject/leves/xxxxsss
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"level_name": "第一关",
|
||||
"difficulty": "easy",
|
||||
"enemies": [
|
||||
{"type": "goblin", "count": 10},
|
||||
{"type": "troll", "count": 2}
|
||||
],
|
||||
"boss": {
|
||||
"type": "dragon",
|
||||
"health": 5000
|
||||
}
|
||||
}
|
24
awesomeProject/awesomeProject/main.go
Normal file
24
awesomeProject/awesomeProject/main.go
Normal file
@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
)
|
||||
|
||||
var db *sql.DB
|
||||
|
||||
func main() {
|
||||
openFileDate()
|
||||
initweb()
|
||||
}
|
||||
|
||||
//var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890")
|
||||
|
||||
//func randStr(n int) string {
|
||||
// b := make([]rune, n)
|
||||
// for i := range b {
|
||||
// b[i] = letters[rand.Intn(len(letters))]
|
||||
// }
|
||||
// return string(b)
|
||||
//
|
||||
//}
|
5
awesomeProject/awesomeProject/playerInfo.json
Normal file
5
awesomeProject/awesomeProject/playerInfo.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"InviteGiftOpen": [false, false, false, false, false, false],
|
||||
"RushGiftOpen": [false, false, false, false, false, false, false,false,false],
|
||||
"OnlineGiftOpen": [false, false, false, false, false, false]
|
||||
}
|
1
awesomeProject/awesomeProject/register.go
Normal file
1
awesomeProject/awesomeProject/register.go
Normal file
@ -0,0 +1 @@
|
||||
package main
|
1039
awesomeProject/awesomeProject/web.go
Normal file
1039
awesomeProject/awesomeProject/web.go
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user