打包好的海战炮击游戏golang版,deb、rpm、snap包
Tofloor
poster avatar
梦幻大陆
deepin
2018-03-27 17:51
Author
本帖最后由 rocket 于 2018-4-22 11:14 编辑

新增了golang版,已经编译好了,比pygame运行流畅的多。
只要在“golang版”目录中运行./shipgunner就可以玩了。
依赖 sdl2,安装以来关系的命令(在ubuntu下测试有效):
sudo apt-get install libsdl2-*


控制:
左、右键:控制方向,按住移动
空格键:发射炮弹
上、下键:控制炮管仰角,按一下调整一个像素

运行方法:
菜单->游戏->摧毁敌舰

命令方式:
/opt/shipgunner/bin/shipgunner

源代码地址:
https://gitee.com/rocket049/golang_test

二进制包(deb、rpm、snap)地址:
https://gitee.com/rocket049/golang_test/tree/master/%E5%AE%89%E8%A3%85%E5%8C%85
下载地址二:
https://gitee.com/rocket049/ship_gunner/attach_files
snap安装:
snap install shipgunner
主菜单里会有“战舰炮手”启动器






Reply Favorite View the author
All Replies
avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2018-03-27 18:05
#1
可以打包成flatpak吗?
Reply View the author
avatar
梦幻大陆
deepin
2018-03-27 19:46
#2
可以吧,依赖很少
Reply View the author
avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2018-03-29 08:44
#3
rocket 发表于 2018-3-27 11:46
可以吧,依赖很少

你可以试着打包成flatpak
Reply View the author
avatar
海天鹰
deepin
2018-03-29 16:01
#4
厉害了,等下试试
Reply View the author
avatar
梦幻大陆
deepin
2018-03-29 19:57
#5
https://bbs.deepin.org/post/154706
你可以试着打包成flatpak

我现在没有deepin系统,而在 ubuntu 、 fedora 里都可以轻松解决依赖问题。
据说deepin和ubuntu类似,你可以试一下我为 ubuntu 编写的配置脚本 config.sh
Reply View the author
avatar
梦幻大陆
deepin
2018-04-15 16:36
#6
新增了golang版,已经编译好了,比pygame运行流畅的多。
只要在“golang版”目录中运行./shipgunner就可以玩了。
依赖 sdl2,安装以来关系的命令(在ubuntu下测试有效):
sudo apt-get install libsdl2-*
Reply View the author
avatar
梦幻大陆
deepin
2018-04-15 16:40
#7
本帖最后由 rocket 于 2018-4-15 08:41 编辑

golang 真不错,开发简易度接近 python ,运行速度却和 C 一个级别的。源代码在我另一个项目“golang_test”中。
Reply View the author
avatar
180******66
deepin
2018-04-16 02:30
#8
https://bbs.deepin.org/post/154706
golang 真不错,开发简易度接近 python ,运行速度却和 C 一个级别的。源代码在我另一个项目“golang_test ...

我用了你的gtk3实例,挺好的,还是期待go官方的GUI库,难得有这种开发简易,速度又快还跨平台的语言
Reply View the author
avatar
梦幻大陆
deepin
2018-04-21 05:02
#9
打包好了,ubuntu18.04下的deb包
Reply View the author
avatar
梦幻大陆
deepin
2018-04-22 17:52
#10
snap包也可用了,安装命令:
snap install shipgunner_1.0.0_amd64.snap --dangerous

启动命令:
shipgunner

snap打包的程序不会加入主菜单里,不好意思,请自己在桌面建一个启动文件:
shipgunner.desktop
内容:

[Desktop Entry]
Version=1.0
Type=Application
Name=战舰炮手
Comment=
Exec=/snap/bin/shipgunner
Icon=/snap/shipgunner/current/opt/shipgunner/data/pics/baozha3.png
Path=
Terminal=false
StartupNotify=false


Reply View the author
avatar
梦幻大陆
deepin
2018-04-22 19:12
#11
启动器什么都解决了,并且上传到 snap store了:
$ snap find shipgunner
Name        Version  Developer  Notes  Summary
shipgunner  1.0.1    fhz049     -      海战射击游戏; battle ship shot game

欢迎试玩
Reply View the author