Page 1 of 1
Henhouse v1 only iPhone
Posted: Sat Dec 26, 2015 7:26 pm
by Tantrixx
Dear forum, mr.K bring to your attention my first game made from beginning to end by me.
I want to thank the creator of this wonderful program sB mr.K and Фанта, which helped me and advice. Without them I would not have coped. Thank you.
https://www.dropbox.com/sh/3pllfshifdor ... LpRna?dl=0
In the future we plan to upgrade, add sound, and support for other apple devices.
Management simple by pressing the chickens
Re: Henhouse v1 only iPhone
Posted: Sun Dec 27, 2015 5:48 am
by rbytes
This is a fun game and I can see that you have put a lot of time and thought into it.
I hope you have plans to make it autosense and adjust to various devices and screen sizes. On my iPad Air, the grass didn't fill the screen. I just changed the scale to 2.6 to fix that. The girl and chickens could be a lot larger - on my Air they appear up in the top left corner and the rest of the screen is grass.
I look forward to seeing more of your designs, Tantrixx.
Re: Henhouse v1 only iPhone
Posted: Sun Dec 27, 2015 6:28 am
by Tantrixx
Well, I first of all try to adapt apple devices. No experience, this will be glad feedback. Thank you.
Re: Henhouse v1 only iPhone
Posted: Sun Dec 27, 2015 6:45 am
by rbytes
smartBASIC has commands that are very useful for adjusting the graphics content for different iOS devices:
DEVICE_TYPE$ ()
returns device type. Possible values: "iPad", "iPhone".
So you could code
IF DEVICE_TYPE = "iPhone" THEN .....
(do something)
ELSE
(do something else)
END IF
For graphics programs and games, I find it very useful to check screen size and then set up my images and sprites.
sw=SCREEN_WIDTH ! sh=SCREEN_HEIGHT
IF sw=1024 THEN
(iPad and iPad mini screen width; set positions and scales of images & sprites to fit)
ENDIF
IF sw=736 THEN
(iPhone 6+ screen width; set positions and scales of images & sprites to fit)
ENDIF
IF sw=667 THEN
(iPhone 6 screen width; set positions and scales of images & sprites to fit)
ENDIF
IF sw=568 THEN
(iPhone 5s screen width; set positions and scales of images & sprites to fit)
ENDIF
Re: Henhouse v1 only iPhone
Posted: Sun Dec 27, 2015 6:55 am
by Tantrixx
Thank you. I will experiment