Hi Bernat! Here's another +1 for websockets in pharo 2.0 + Zinc. Pharo 2.0 is far more stable now and the Zinc-Websocket package is a lot easier to install and use than what we were trying "back in the day" with that old websocket package (which hardly works nowadays do to changes in the RFC spec).
Not only that, but the 'gaming benchmarks' I have run with Zinc-websocket shows it to be a lot more performant. I speak of just updating for instance the position of 'spaceships' in an asteroids style game. It's far smoother now with zinc-websocket package.
All that being said I haven't investigated the other websocket packages for instance Swazoo-websocket. They all cropped up around the same time so maybe they are based on each other? Not sure.
For a game framework, nowadays I am using pulse game engine. It's free and very easy to get something started with, as you can see from this demo page: http://withpulse.com/docs/getting-started .
However there are TONS of new html5 javascript game frameworks, including some really, really nice 3d ones. I think amber + pharo websocket + javascript game engine could be a really killer combination. Good luck and let us know what you end up doing! :) P.S. If you go with zinc-websocket here is one pitfall to avoid: Make sure you 'close' the server if you have had any sockets connect to it before saving the pharo image. There is a bug where an image will just crash on startup. It's not the end of the world because you can drag the broken pharo image into a new image and view changes but it's still a shock to see your image just dissapear on startup. :)
P.P.S. One thing I really love about using Pharo as a server backend instead of somethign like nodejs is just the fact that you have a live image for the server. Want to have a visual display of the game world? Program it in morphic or athens. Interact with the server state using a workspace. It is all so much nicer than using traditional nodejs, unless there is some kind of workflow I didn't know about.
-Jacob (zenchess) On Wed, Nov 21, 2012 at 4:19 AM, <[hidden email]> wrote:
<zenchess@gmail.com>
|
Hi Jacob!
I didn't know about Pulse, it looks great! For my game, though, I won't be needing any real-time interactivity, just storing/retrieving scores and user data before and after each game.
Thanks for the tips on websockets, I'll keep them in mind :) Cheers!
2012/11/21 Jacob Wagner <[hidden email]> Hi Bernat! Here's another +1 for websockets in pharo 2.0 + Zinc. Pharo 2.0 is far more stable now and the Zinc-Websocket package is a lot easier to install and use than what we were trying "back in the day" with that old websocket package (which hardly works nowadays do to changes in the RFC spec). Bernat Romagosa. |
Free forum by Nabble | Edit this page |