Alright, hello this is SoupHead, and I have a few questions for which I want suggestions (rhyming, tee hee).
Anyway, until recently I have been attempting to develop a game with Java for Android. I’ve been having a slight problem with getting graphics running and dealing with sprite sheets. More recently, I was informed about EsleJS, and after a little bit, I realized that the animation simplicity and similarities to AS, could really benefit me (I’ve already made a game with AS). So, I am planning to make this game with EsleJS, and make a computer browser version, while also creating it for mobile devices. (I’ll make an app that will launch a browser inside it, running the html, starting the javascript game) Note that I also know EsleJS will only work on very up to date browsers, but overtime, I think it will be more widely supported.
Enough with the background… For making the mobile version, I’m planning to split the screen up (Movement buttons on the left, Other buttons on the right, Game in the middle). I’m wondering how I should do this with JS.
My first thought is to create 3 Bitmaps/Images/Containers (Not sure what I’d use) and place my buttons in those. So I’d have a left, middle, and right with different button in them. Then, I was planning to place left on the stage at x = 0, middle on the stage at x = left.width, and finally right on the stage at x = stage.width - CONSTANT. (Left and Right have fixed sizes, where the middle fills the middle in the biggest square it can make) Finally, when I update stage, this should keep all of my items in place and redraw them, correct?
The reason I thought of this is because I’ll be able to use that middle bitmap, and start at coordinates zero, as if I didn’t have the left and right sections at all.
Is this a good approach? Do people have a good stance on this, bad stances, or any better ideas?
Also, with Flash, when changing the size of the screen, Flash will scale everything automatically (Allowing infinite resolutions). Does Javascript (or this EsleJS) work the same way or will I need to scale with some logic?
Thank you,
SoupHead