00:00
00:00
matt-likes-swords
Blurb.

Matt Roszak @matt-likes-swords

Age 33, Male

Procrastinator

Glasgow University

Glasgow, UK

Joined on 6/12/04

Level:
46
Exp Points:
22,708 / 23,490
Exp Rank:
690
Vote Power:
8.67 votes
Art Scouts
10+
Rank:
Safety Patrol
Global Rank:
27,923
Blams:
171
Saves:
178
B/P Bonus:
6%
Whistle:
Garbage
Trophies:
43
Medals:
3,215
Supporter:
11y 6m 20d
Gear:
4

Porting Epic Battle Fantasy 4

Posted by matt-likes-swords - June 5th, 2023


I've started work on the mobile version of EBF4. Going from 4:3 aspect ratio to 20:9 feels weird. But at least updating the graphics a bit is fairly straightforward and relaxing work.


There's a lot of code that I can copy from EBF5 to make it easier, but making the user interface wider and bigger for mobile screens is still gonna take a lot of tedious work. UI stuff is definitely the worst part of doing a port like this. Well, that, and optimizing a lot of lazy coding that I fixed in EBF5 but left in EBF4.


Hopefully all of the mobile features like in-app purchases, adverts, and cloud saving, will be trivial to implement now that they work in EBF5 - but they gave me a lot of trouble the first time!


Btw, I'm still using standard Flash display list and vector graphics, if anyone's wondering.

It works fairly well on Android, and great on iOS!


iu_988481_877736.webp

iu_988483_877736.webpiu_988482_877736.webp


39

Comments

Vector graphics works great on mobile devices? I'm shocked! Is that with the newer versions of AIR? Is it because AIR performance has improved or because mobile phones have gotten way faster than they used to be?

Not sure, but mobile AIR does a lot of stuff on GPU that the desktop version does on CPU.
Probably depends on the type of game, but EBF5 runs well enough on everything other than very cheap Android devices. The biggest issue turned out to be stutters from the garbage collection, rather than the vector graphics. There are some limitations though - filters don't work, and you have to make good use of cacheAsBitmap on your backgrounds.

Man, i love the fact that my favorite RPG's creator can't stop creating content and improve what he has.

You are great animator. Phyrnna is great musician. Literally everyone who help you make stuff deserve attention.

Also i can't believe that some short final fantasy parody animations grew into great game that i play most of my time.

Love yo shit bro keep it up

can't wait for this to come out. it's gonna be free? or paid?

Dam you've been a machine with the work these last years.

@matt-likes-swords Ah I see so it's basically doing the things that developers would've been expected to do manually (rasterizing vectors) just more aggressively in the past I guess? I remember cacheAsBitmap being suggested as a performance improvement in the past for mobile devices as well, just didn't do much at the time and it definitely didn't work at all for animated movieclips. Haven't used newer versions of AIR in quite a while but it's good to see that HARMAN is still supporting it.

Speaking of which, I remember skimming through their release notes a while ago and I'm pretty sure I saw a lot of new APIs that were introduced (e.g. in the Point, ByteArray and other classes IIRC). My development environment is primarily targeting desktop devices and FlashDevelop doesn't play nice with newer versions of AIR since it's obsolete at this point -- but have you / are you considering making use of them?

cacheAsBitmap is very useful for graphics that are not animated - but all of the characters and stuff are vectors. The animated stuff is never rasterised. Maybe there exists some convenient/efficient way to rasterize animated stuff, but I didn't figure it out, and I'm not sure it would make a huge improvement based on some tests I tired. (unless using something like Starling)

Not sure which AIR features are considered "new" at this point, but HARMAN did make some changes to Desktop AIR that I liked, such as bringing back the Stage Quality options - a bit too late for me though! FlashDevelop is definitely feeling a bit outdated and has been less reliable, but I'm still using it for now.

I hop back on newgrounds for the first time in 8 years to learn that not only are there 5 epic battle fantasies, but there are mobile ports?! Frick, that's awesome!

@matt-likes-swords The only way that I know of is to draw all the frames into one big BitmapData and then use that as a spritesheet, and that probably would result in big gains only if it's a replacement over movieclips with lots of filters and complex layouts.

As for the changes that HARMAN have made, I found this link that shows them all - nothing too spectacular it seems, which I guess is fair since they're probably running on a skeleton crew for maintenance purposes -

https://airsdk.dev/reference/actionscript/3.0/whatsnew.html

This is gonna be amazing ?

Matt your newgrounds pm? Your message?

With EBF5 on mobile with EBF4 sometime later, is it safe to assume that one day EBF3 will also get a mobile port someday?

Very low priority because it's a free game and no one will pay for it.