Tuesday, August 28, 2012

how to write a 2D game by using GWT and html5.

I love GWT, but I think it's the wrong choice for a simple game. Take a look at my game: www.playgrape.com. I did it in jQuery using canvas. It has its own physics engine with collision detection, etc., and the total size of the game is less than 6kB (plus jQuery). Even a simple GWT app will get you over 300kB very quickly, even more with RequestFactory.

Unless you have a lot of complex data entities and a complicated UI (many different views, panels, popups), jQuery is a better option.

As for the third party libraries, I would not recommend any for a simple game. Libraries I looked at were heavy and geared for more complex games. Drawing on canvas is pretty simple.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/EO3qiQDXWfAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment