InstantPoker Part 1 - Canvas
Thursday, June 30, 2011 6:22:09 AM
So, I have decided to focus on application development using web technology. To be able to learn everything I want to learn (I am rather inexperienced in working with web technology) I have decided to run a project. As most developers, I have a favorite project, that you implement whenever you are trying out a new platform, in my case it is developing a poker server. Last time I did it I was 4 years ago working in Java, I wrote some code, but never finished. This time I am going to use web technology on the client side, and NodeJS on the server.
The project got started two days ago, the main reason is that I got inspired to see how good poker interface you can create on a tablet.I actually think that you create a rather nice interface, but playing a lot of tables at a time as some of the pros is far from optimal on a table. I also think that the user interface in most poker clients on desktop computers is clunky.
The working title of this project is InstantPoker. Since it is running in a browser, you will be able to start playing instantly, without installing any software or plugins.
Every poker client needs a poker table. Since this is very graphical, I have decided to use the canvas element. The first thing that I did was to find a deck of cards. For the first prototype I am using the PNG images in the common cards deck that I found on this page. They are quite big (72*96 pixels), but for the prototype, I don't want to spend too much time looking for a deck of cards. It was very easy to learn how to draw a PNG on the canvas.
I a really not good at graphics design. A poker table is usually rendered on a screen as something that looks similar to a poker table, with the same shape. For two reasons, I have decided to not do it like that. Most importantly, I lack the required skills to do that. And then, I think that a poker table that does not look exactly like a poker table can have higher usability. (easier to see what is going on, more efficient use of screen estate)
The poker table will be rectangular, with players just sitting on two of the sides, up to 5 at each side. Another change compared to other poker clients is that I am using text (no graphics) to represent the chips, both in front o the player, and in the pot. I am trying to make it as good as possible for making good decisions while playing, not to have the fanciest graphics.
How to draw text on a canvas was easy to learn.
I don't have any good screenshots yet, the design is far from finished, I will save that for another blog post. Don't expect too much, but at least I want to show you how it differs from a normal poker client.
The project got started two days ago, the main reason is that I got inspired to see how good poker interface you can create on a tablet.I actually think that you create a rather nice interface, but playing a lot of tables at a time as some of the pros is far from optimal on a table. I also think that the user interface in most poker clients on desktop computers is clunky.
The working title of this project is InstantPoker. Since it is running in a browser, you will be able to start playing instantly, without installing any software or plugins.
Every poker client needs a poker table. Since this is very graphical, I have decided to use the canvas element. The first thing that I did was to find a deck of cards. For the first prototype I am using the PNG images in the common cards deck that I found on this page. They are quite big (72*96 pixels), but for the prototype, I don't want to spend too much time looking for a deck of cards. It was very easy to learn how to draw a PNG on the canvas.
I a really not good at graphics design. A poker table is usually rendered on a screen as something that looks similar to a poker table, with the same shape. For two reasons, I have decided to not do it like that. Most importantly, I lack the required skills to do that. And then, I think that a poker table that does not look exactly like a poker table can have higher usability. (easier to see what is going on, more efficient use of screen estate)
The poker table will be rectangular, with players just sitting on two of the sides, up to 5 at each side. Another change compared to other poker clients is that I am using text (no graphics) to represent the chips, both in front o the player, and in the pot. I am trying to make it as good as possible for making good decisions while playing, not to have the fanciest graphics.
How to draw text on a canvas was easy to learn.
I don't have any good screenshots yet, the design is far from finished, I will save that for another blog post. Don't expect too much, but at least I want to show you how it differs from a normal poker client.








