本文介绍了如何在本地生产模式下运行我的playN游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我想在生产模式下运行我的playN游戏,因为开发模式太慢而无法测试。我无法点击并获得按钮响应,并且在开发模式下更新非常慢。我已经读过,用localhost代替链接的IP会做。但即使我做了同样的事情,它也像以前一样缓慢。 我只需要运行html版本。我该如何做到这一点?解决方案您应该尝试运行test-html配置文件。从PlayN的入门页面: cd playn-samples / showcase mvn clean package mvn test -Ptest-html 然后浏览至 http:// localhost:8080 / I want to run my playN game in production mode as the development mode is too slow to test. I am not able to click and get the response for buttons and it updates very slow in dev mode. I have read that substituting the IP of the link with "localhost" will do. But even after i have done the same, It is too slow like before. I need to run the html version only. How can I do this? 解决方案 You should try running it having the test-html profile active. From PlayN's getting started page:cd playn-samples/showcasemvn clean packagemvn test -Ptest-htmlThen just browse to http://localhost:8080/ once Jetty has started. I find it significantly faster than development mode. Just substitute the showcase with your own application. 这篇关于如何在本地生产模式下运行我的playN游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-23 18:12