Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gaz

Pages: [1]
1
General / Re: Android troubles
« on: January 25, 2018, 11:32:59 am »
Yes it does seem like when you use sf::RenderWindow::create() that it doesn't take into account the bottom part of the screen.

2
General / Re: Android troubles
« on: January 25, 2018, 11:05:24 am »
To get my program fully running on android I had to replace the ifstream file handlers with the sf version of loading files, they worked right out of the box and I had no problems reading a text file.

About the clickbox issue, it's resolved now thanks to you, everything is working now as intended!

Thank you so much Expl0it3r!

Best,
Gaz

3
General / Android troubles
« on: January 25, 2018, 02:52:53 am »
So I managed to build the Android SFML libs, and got the example to work. Afterwards I tried to compile my own project, a small memory card game, and to my surprise everything went suprisingly smooth except for a few necessary changes that were easily fixed. Didn't expect it for an experimental build to actually work so well!

However I did find just one small problem (apart from the minimizing/maximizing thing) , and as I don't know anything about java I'm not sure if it's because my layout may be set up wrongly or is it due to SFML in some way. Here are some pictures:



Over here the view looks like it's fullscreen, but it's actually fullscreen and zoomed in/stretched, as my card clickboxes are left of the cards and not on the cards themselves, the first clickbox is just a few pixes switched to the left, while the last card in the row has a clickbox that's shifted left by more than half a card.

Sometimes, when I minimize then open the game again(I recreate the window on sf::Event::MouseEntered) I get this:



The cards are now in their proper position and the clickboxes are also where they're supposed to be, even though there's an ugly black bar below the game it's functional now.

Now I'd like to know if anyone knows the reason behind this and if it can be fixed?

The game works on all other platforms(any resolution) properly

Best,

Pages: [1]
anything