---
title: "使用 playn 和 GWT 开发 html5 游戏。搭建环境。helloworld。"
author: "toeo"
date: "2012-04-13T18:49:42Z"
tags: []
categories: ["Web前端"]
slug: "playn-gwt-html5-helloworld"
draft: false
lastmod: "2012-04-13T18:49:42Z"
id: 1485652
url: "https://toeo.iteye.com/blog/1485652"
---

[http://code.google.com/p/playn/](http://code.google.com/p/playn/)

 

 

开始使用软件 首先下载：

 

[http://code.google.com/p/playn/wiki/GettingStarted](http://code.google.com/p/playn/wiki/GettingStarted)

 

下载demo的地址。

 

[http://code.google.com/p/playn-samples/](http://code.google.com/p/playn-samples/)

 

 

![](http://dl.iteye.com/upload/attachment/0066/5341/2dc1b9fb-5298-39d1-82fd-70c851b7eecc.gif)

 

这个事demo 的文件夹。

 

其实 要使用这个 必需使用 GWT 组件。

 

创建一个工程然后 把  samples 的文件夹拷贝过来。

 

pom的 可以直接 通过 依赖下载。

 

```
		<dependency>
			<groupId>com.googlecode.playn</groupId>
			<artifactId>playn-core</artifactId>
			<version>1.1.1</version>
		</dependency>
		<dependency>
			<groupId>com.googlecode.playn</groupId>
			<artifactId>playn-html</artifactId>
			<version>1.1.1</version>
		</dependency>
```

 

![](http://dl.iteye.com/upload/attachment/0066/5498/3fdc5eea-10d5-35a9-9637-24496ab6acf7.gif)

设置 core包。

 

 

 

![](http://dl.iteye.com/upload/attachment/0066/5501/cc9537ef-29bb-3e8f-a34d-6ddd467f1c85.gif)

 

运行 效果 图。点击就显示 一个小圆球。

 

hello world 运行成功 ！！ 继续研究。

 

附件是demo的文件。刨去 gid 补丁 12 MB