Hello evryone!
I am new here, in the past month I have made 4 programs. But nothing realy serius
so far...
I have ran out of ideas for programs, so if any of you have a idea for a program please
just tell me (I script in VB 2010). So far I am lets say an "amateur" when it comes to programing, but i learn with each program i make. So if you have any ideas just share.
P.S. i would like to know how to make a app for tuchscreen devices
(iPhone, touch phones)
Thanks in advance, Dan
_______________________
Evrything is possible...
2 replies to this topic
#1
Posted 04 April 2011 - 08:54 AM
|
|
|
#2
Posted 06 April 2011 - 11:16 AM
As a habit of practice, every time I learn a new language, I always implement the simple lights out game to learn basic GUI programming.
The lights out game is simple: for an n x m grid of buttons, each button will toggle its visibility along with the visibility of the buttons adjacent to it, either one row up or one row down, or one column left or one column right. Buttons on the edges and corners ignore any non-existent buttons that would be positioned off-grid. After each button press, the game checks all the buttons to see if any are still visible, and if not, presents the user with a message that he or she has won.
Some things to consider: Try making n and m customizable by the user, so he or she can play on a grid of any size they wish. (Or, if you prefer, only provide one variable and use it for both the number of rows and columns, to play on a square each time.) Additionally, if the language you're using uses a layout manager of any kind, ensure the buttons do not shift positions on the window as other buttons turn invisible.
As for iPhones and touch devices, you'll have to download Apple's iPhone SDK if you want to develop for it. I'm not sure if you have to pay upfront to join their developer program, or if you can get the tools for free. For Android, you should be able to download Eclipse and the Android SDK and start coding. All other touch devices, like touch screen netbooks and desktops, simply treat touch events like a mouse click, so any GUI you develop will work for touch. I just like to make the buttons a little bigger to make them finger-friendly.
The lights out game is simple: for an n x m grid of buttons, each button will toggle its visibility along with the visibility of the buttons adjacent to it, either one row up or one row down, or one column left or one column right. Buttons on the edges and corners ignore any non-existent buttons that would be positioned off-grid. After each button press, the game checks all the buttons to see if any are still visible, and if not, presents the user with a message that he or she has won.
Some things to consider: Try making n and m customizable by the user, so he or she can play on a grid of any size they wish. (Or, if you prefer, only provide one variable and use it for both the number of rows and columns, to play on a square each time.) Additionally, if the language you're using uses a layout manager of any kind, ensure the buttons do not shift positions on the window as other buttons turn invisible.
As for iPhones and touch devices, you'll have to download Apple's iPhone SDK if you want to develop for it. I'm not sure if you have to pay upfront to join their developer program, or if you can get the tools for free. For Android, you should be able to download Eclipse and the Android SDK and start coding. All other touch devices, like touch screen netbooks and desktops, simply treat touch events like a mouse click, so any GUI you develop will work for touch. I just like to make the buttons a little bigger to make them finger-friendly.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
#3
Posted 06 April 2011 - 11:21 AM
thanks,
Dan
_________________________
Evrything is possible
Dan
_________________________
Evrything is possible
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









