go/mobile vs. go-sdl2

agolangf · · 1248 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m interested in writing some topdown 2D games in go for desktop and mobile and having a hard time figuring out why not to just use go-sdl2 for it. I tried running the mobile/app examples on desktop and they failed so wondering if I have to use sdl2 to get support for both platforms.</p> <hr/>**评论:**<br/><br/>G0T0: <pre><p>there are SDL2 bindings for go. SDL2 can run on Android and IOS if I&#39;m not mistaken.</p></pre>tiggus: <pre><p>Yes I&#39;m using go-sdl2 binding which works great for desktop however the go toolchain for building to Android(gomobile) doesn&#39;t seem to support it as it wants me to use the /x/mobile pkg for go native apps. I&#39;m wondering if there is a way to get around this and just have it compile to android without the x/mobile libraries.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1248 次点击  
加入收藏 微博
1 回复  |  直到
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传