Re: [請益] 手機APP開發需要什麼

看板Soft_Job作者 (影斯作業系統)時間4年前 (2019/07/06 18:11), 編輯推噓1(101)
留言2則, 2人參與, 4年前最新討論串3/3 (看更多)
幫日本原作者推廣 ebiten。 四小時內應該能安裝好,造出第一個 APK。 時間都是被下載和安裝的龜速佔用了。 0. 前人寫的中文教學: https://yami.io/tag/ebiten/ 在 Golang 透過 Ebiten(炸蝦)來製作 8-Bit 遊戲! 1. 安裝 git https://gitforwindows.org/ 2. 安裝 GO https://golang.org/ 3. 安裝 Android Studio https://developer.android.com/studio 我是裝在 c:\and 裝好後 Configure -> SDK -> SDK tools 找到 NDK 勾選它, 選 apply SDK 我是裝在 c:\andsdk NDK 在 c:\andsdk\ndk-bundle set ANDROID_NDK_HOME=c:\andsdk\ndk-bundle 4. 安裝 gomobile https://godoc.org/golang.org/x/mobile/cmd/gomobile go get golang.org/x/mobile/cmd/gomobile gomobile init 5. 依照上面的中文說明取得 ebiten set ANDROID_NDK_HOME=c:\andsdk\ndk-bundle gomobile build -tags=example \ -target=android github.com/hajimehoshi/ebiten/examples/2048 得到 go2048.apk 安裝雷電可使用: https://imgur.com/QbC1uhd
https://github.com/hajimehoshi/ebiten/wiki/Android https://github.com/hajimehoshi/ebiten/wiki/iOS https://github.com/hajimehoshi/ebiten/wiki/Mobile 6. WWW https://github.com/hajimehoshi/ebiten/wiki/GopherJS go get github.com/gopherjs/gopherjs gopherjs 不能用 -tags=example,原作者有設定 example 和系統分開 所以要 copy cd work xcopy /s C:\Users\enthos\go\src\github.com\hajimehoshi\ebiten\examples\2048 set GOOS=linux gopherjs build -o 2048.js main.go notepad 2048.htm <!DOCTYPE html> <script src="2048.js"></script> https://www.rejetto.com/hfs/ hfs.exe 2048.htm 2048.js hfs 會有網址 可用 chrome 開啟: https://imgur.com/w5for3v
7. PC 原版 go run -tags=example github.com/hajimehoshi/ebiten/examples/2048 https://imgur.com/zhfWiL4
-- https://youtu.be/MMWBPklrRB4
小雞逼逼(崩潰版) https://youtu.be/KlZL1hqGxDg
《江南夜色》 https://youtu.be/WIW16vMdrZU
《告白氣球》 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.228.79.233 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Soft_Job/M.1562407911.A.CB7.html

07/06 23:51, 4年前 , 1F
這個是?看不太懂
07/06 23:51, 1F

07/07 00:46, 4年前 , 2F
使用 golang 開發時,運用 gomobile 的步驟
07/07 00:46, 2F
文章代碼(AID): #1T87Fdot (Soft_Job)
文章代碼(AID): #1T87Fdot (Soft_Job)