Re: [Gambas-user] yaya - yet another yahtzee

2014-07-14 Thread Kevin Fishburne
On 07/13/2014 12:54 PM, Patrik Karlsson wrote:
 2014-07-13 1:18 GMT+02:00 Kevin Fishburne kevinfishbu...@eightvirtues.com:

 3) Decide on either a two-pane horizontal or two-pane vertical layout
 with one pane containing the dice and the other pane containing the
 info grid for lack of a better term. It currently requires scrolling
 to see all the information.
 Not today but I might do it in the future. Would you also have the dice
 stacked on each other in a vertical layout?
 You could reduce the font size so that you don't have to scroll.

I kinda like the right-to-left rolling for the dice, but whatever floats 
your boat.

Something interesting I just noticed is that the window is resizeable 
and remembers its dimensions after being closed. While this is nice, the 
window elements don't reposition or scale well. I'd track the window's 
width and height and designate areas based on percentages of the width 
and height for each element. An example for the info grid with X1/Y1 
being the upper-left corner and X2/Y2 being the lower-right corner:

X1 = Width * 0.125
Y1 = Height * 0.125
X2 = Width * 0.25
Y2 = Height * 0.875

This would place the info grid on the left side, stretching from top to 
bottom, with a small edge border and a width approximately 25% of the 
window.

The same could be done for the dice area and the hand graphic 
(separately), using the remaining 75% of the window width. Just be sure 
to maintain the aspect ratio for images so they don't stretch.

 5) This is probably because I don't know what I'm doing, but after
 several rolls the graphical UI becomes unresponsive, not allowing me to
 roll again or right/left click on a die. If this is because I lost the
 game there should be an OSD telling me that I lost.

 That's my way of saying you have no more rolls and you have to register
 something in the scorecard.
 Below the player name there is a counter that goes 3/3 when there no more
 rolls left, in that round.

With all due respect to myself, since I don't know how to play I can be 
considered an idiot in that respect. Idiot-proofing a game is always 
a good idea, so I still recommend having some kind of pop-up, 
in-your-face message when the user is doing something they're not 
supposed to be doing (like clicking on the dice repeatedly when they 
need to be registering something on the score card).

 One final suggestion is that if you'd like to increase the oooh aaah
 factor you might want to consider having a 3D mode which uses OpenGL
 to render the dice and board. You could even do some really simple
 collision detection with the dice.
 Nice idea but since I'm 3D challenged that will not happen any time soon. :)

I'm thinking about putting together a small project to help people in 
this situation. There are some OpenGL demos packaged with GAMBAS, but 
they're more geared toward doing something than showing people how to 
do something. Setting up a scene, drawing textured quads, setting 
material and lighting properties and drawing a modeled Wavefront .obj 
file are some basic things that need to be laid out clearly and simply. 
With those few things you can do a LOT. Once you realize how easy it is, 
and all the possibilities, you'll jump out of your chair in excitement; 
believe me.

-- 
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sa...@eightvirtues.com
phone: (770) 853-6271


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] yaya - yet another yahtzee

2014-07-13 Thread Patrik Karlsson
2014-07-13 1:18 GMT+02:00 Kevin Fishburne kevinfishbu...@eightvirtues.com:

 On 07/12/2014 12:56 PM, Patrik Karlsson wrote:
  My first Gambas project of any substance is becoming somewhat useful and
  I'm asking you for some feedback before I'm wrapping it up.
 
  It's a dice game based on the Yahtzee structure and it's easy to create
  similar dice games.
  Eg.
 https://github.com/trixon/gambas-yaya/blob/master/gamedefs/default.json
 I don't know how to play Yahtzee, but here are my suggestions:

 1) Place a Roll button image in the bottom-right corner.


Let me think about that..


 2) Create a default player so the user doesn't have to create one on
 first run.


Will do, and I'll also make it easier to add new names on the fly.


 3) Decide on either a two-pane horizontal or two-pane vertical layout
 with one pane containing the dice and the other pane containing the
 info grid for lack of a better term. It currently requires scrolling
 to see all the information.


Not today but I might do it in the future. Would you also have the dice
stacked on each other in a vertical layout?
You could reduce the font size so that you don't have to scroll.

4) If you move the mouse across the top edge of the collision box of the
 roll area the hand graphic scrolls left and right repeatedly, which
 while probably easy to fix is confusing when learning the interface.


You are right, there's something strange going on there. It should hide the
hand when moving away from the dice panel, but not in that way.


 5) This is probably because I don't know what I'm doing, but after
 several rolls the graphical UI becomes unresponsive, not allowing me to
 roll again or right/left click on a die. If this is because I lost the
 game there should be an OSD telling me that I lost.


That's my way of saying you have no more rolls and you have to register
something in the scorecard.
Below the player name there is a counter that goes 3/3 when there no more
rolls left, in that round.


 One final suggestion is that if you'd like to increase the oooh aaah
 factor you might want to consider having a 3D mode which uses OpenGL
 to render the dice and board. You could even do some really simple
 collision detection with the dice.


Nice idea but since I'm 3D challenged that will not happen any time soon. :)


 Nice work and keep it up.


Thank you, and thanks for your feedback.

/Patrik
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] yaya - yet another yahtzee

2014-07-12 Thread Kevin Fishburne
On 07/12/2014 12:56 PM, Patrik Karlsson wrote:
 My first Gambas project of any substance is becoming somewhat useful and
 I'm asking you for some feedback before I'm wrapping it up.

 It's a dice game based on the Yahtzee structure and it's easy to create
 similar dice games.
 Eg. https://github.com/trixon/gambas-yaya/blob/master/gamedefs/default.json
I don't know how to play Yahtzee, but here are my suggestions:

1) Place a Roll button image in the bottom-right corner.

2) Create a default player so the user doesn't have to create one on 
first run.

3) Decide on either a two-pane horizontal or two-pane vertical layout 
with one pane containing the dice and the other pane containing the 
info grid for lack of a better term. It currently requires scrolling 
to see all the information.

4) If you move the mouse across the top edge of the collision box of the 
roll area the hand graphic scrolls left and right repeatedly, which 
while probably easy to fix is confusing when learning the interface.

5) This is probably because I don't know what I'm doing, but after 
several rolls the graphical UI becomes unresponsive, not allowing me to 
roll again or right/left click on a die. If this is because I lost the 
game there should be an OSD telling me that I lost.

One final suggestion is that if you'd like to increase the oooh aaah 
factor you might want to consider having a 3D mode which uses OpenGL 
to render the dice and board. You could even do some really simple 
collision detection with the dice.

Nice work and keep it up.

-- 
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sa...@eightvirtues.com
phone: (770) 853-6271


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user