I m making a billiard 2d game using box2d . When all the balls are pockted i want give the option of restart or exit .
After googling around i found that Game template can do that easily , but i m not able to understand how should i implement it in my game ?
Comments
So going to understand the scene manager and its role in Game Template. [-O< Hope will figure it out .
Thanks @ar2rsawseen for making it .
The Gobb : https://play.google.com/store/apps/details?id=fr.toastapp.thegobb
http://giderosmobile.com/forum/discussion/480/gideros-game-template/p1
No its just the first level i m working on , don't have more levels . But the image which i m using is of size 1199 * 686 , Earlier i had trouble displaying that image itself . So to make things work i change the Logical dimension of my program to 1280 * 800 , it displayed the image properly. And then i position everything with respect to that dimension. Look like i have selected wrong image. But nothing is clear
If so, please restore these lines.
if you alter the resolution in your project properties, go to config.lua and change the lines
Alternatively, change them to
edit: Just my opinion, but I don't recommend using the game template if you're a starter. It basically takes away the work of setting up your project every time, but you should at least once try to build it yourself. I'd also advise to write your own simple scene manager (it can be done in 10 lines of code or so), so you will get a feeling of how things work
Yes i changed conf.width and conf.height , i choose the wrong number for width and Height as i thought my game is in landscape mode so width should be bigger than height ; but found that Gideros player just rotates the screen by 90 degree.
Just simple thing took one and half day .
And yes I will write my scene manager , because i was happy when my game worked but at the same time had the feeling that this code is not written by me .
So yes i m going to , Thanks