Redoing the player in Flash

Discuss topics that are unrelated to Ace Attorney Online, introduce yourself if you're new and read the latest Member of the Month interview.

Moderators: EN - Assistant Moderators, EN - Forum Moderators

Post Reply
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Redoing the player in Flash

Post by henke37 »

I thought that instead of me going around in each topic and mentioning my feelings, I should just centralize them to a separate topic.

First of all, I want to give some big thanks to the existing developers. You've done a great job, have a pat on the back.
I fully respect your work and absolutely do not want to insult neither you nor the work.

But I still feel that Flash could be used to enhance the player.

I know that not a single thing I am going to mention is impossible to to in JavaScript, however, I believe that it could be done easier and better.

Well, to start off, the existing work would have to be redone. And the existing trials obviously should not be lost, so it has to either use the same dataformat, or a converter.

Now, why do I suggest this? I believe that Flash has better rendering performance and better features than JavaScript. JavaScript mainly interacts with the DOM. However, the JavaScript DOM is hyper text based. And not just that, it is mainly block based.

Another advantage of Flash is the centralization, I have not even tried to reverse engineer the current engine (clear lie, I tried, I gave up after 2 min), but I do imagine that the engine is quite messy since it has to manipulate the DOM and the sound player.

Also, I did hear that the audio player is a hidden Flash movie. Moving the rest to a Flash Movie too would be a nice way of keeping stuff together.

Some features that Flash has that I believe that the player could use is:
  • The better layering, Flash can layer objects with ease.
  • The ability to design while looking at what you are making. It's OK, since there is no markup code generated. Just the raw shape data.
  • It supports video, something that most definitely could be fun.
  • It does vector graphics. Full screen with no pixelation? That would be very desirable.
  • It has smooth animation playback. The current player doesn't exactly have this.
  • Flash is supported in 99% of all browsers. Not even JavaScript has such a high compability rate.
  • Flash has graphical filters and rendering modes.
  • Flash does not need bloated HTML for the trials to run. You can use a custom compact format. Or good old huge, but easy to edit, XML.
  • Flash supports text formating by some crude HTML.
  • With libraries such as Papervision 3D, it can do 3D rendering. That 3d examination stuff sure was a nice break from the main gameplay where it was used.
  • Flash provides excellent interactivity options to duplicate the examination minigames.
    • Yup, blow off all that powder, Flash can read the microphone. And it's fast enough to animate each of the particles while you are doing it.
    • That xray machine? Easy to do with the BittmapData class.
    • The shoe printing would also be fairly possible, Flash can create visible shapes at runtime. Or you could just mask some circles. Either way works
    • The mixing board? Yup, that's possible.
Again, I am fully aware of the enormous work a rewrite would be, even if it's always easier the second time. I do respect that this is not something that people are being paid for to work on and I don't expect people to just say "OK, it's done".

But even with all this work, I still believe that this is the future.

I am ready to help out with the development if needed to, but I just don't have the time to do it alone. Also, I most definitely don't have all the experience the existing developers have with the existing design.

Hoping that I didn't insult anyone or otherwise cause trouble, a new guy.
Currently working on a redesign of Court-records.net.
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

That's an interesting idea. Perhaps you should take a look at this? :)

http://www.gyakutenwiki.net/w/CourtEngine

By the way, there are some points that I should mention:

1. JavaScript is an internet standard. The few browsers that do not support it are poorly designed and not standards compliant.
2. AAO will support video within the next month.
3. Ace Attorney games would not work in full screen. All the sprites would not look good as vectors.
4. It is true that there are some sprite problems, but they will be fixed in the future.

This is a good idea to consider in the future. There might be easier alternatives however, such as Microsoft Silverlight, which is XML based rather than Flash which can only be made using Flash Pro.
Last edited by Meph on Wed Mar 04, 2009 10:37 pm, edited 2 times in total.
User avatar
Ami
Moderator
Posts: 8429
Joined: Tue May 20, 2008 12:42 pm
Gender: Female
Spoken languages: English
Location: Puppies!

Re: Redoing the player in Flash

Post by Ami »

I forget why, but Unas said something about this being on very, very low priority, if even that.

I know it's a great idea, but idk if it would ever be implemented.

CUT: Huh, never saw that before.
since 2008!
Image
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

It is true that the SWF format can practically only be made in Flash, but there is always the technical possibility of using another application to do it.

About the sprites, that is true. Sprites does not scale well, however, if anybody where to redraw the characters in Flash, not like that is going to happen, it would scale very well in Flash.

About Silverlight, I do not care for it. If it as you say, XML based, then it's using a bloated format. XML is bloated, period. And the facts remain, Flash is very widely supported, Silverlight not so.
Currently working on a redesign of Court-records.net.
User avatar
Unas
Admin / Site programmer
Posts: 8850
Joined: Tue Jul 10, 2007 4:43 pm
Gender: Male
Spoken languages: Français, English, Español
Contact:

Re: Redoing the player in Flash

Post by Unas »

Meph wrote:2. AAO will support video within the next months
Fixed :P
I already said it would have to wait several months, perhaps until summer, before I have time to work on v4.1.


Now henke, to answer your question : I am aware that Flash would be the most efficient way of recreating a game, as this is not JS's original purpose. I know that JS is limited.:wink:


I'd be glad to make a Flash case player... But I can't.

First, because I don't know anything about programming in Flash. I don't know how to create graphics, how to use actionscript, etc. I'd have to learn everything. I already hardly have enough time to work on AAO, so adding to it the need to learn everything again... That's just not possible for me right now.

Second, because to create Flash animations you have to use Adobe Flash MX, that costs a lot and - as far as I know - doesn't exist on Linux. Unfortunately, I'm not very rich, and I'm running Linux. Two technical reasons... I may use something as http://haxe.org/doc/intro that can compile flash content, but it's still another programming language that I'd have to learn. So not possible right now.

Anyway, I'd love it if someone here could reproduce the player in Flash, but I can't work on it myself currently, and I don't have time to explain the whole AAO script - which isn't commented much, and in French anyway - to anyone.
So except if you or anyone else finds the courage to go retro-engineering the whole game script, it won't happen any time soon :P
ImageImageImage
If knowledge can create problems, it is not through ignorance that we can solve them.
Si le savoir peut créer des problèmes, ce n'est pas l'ignorance qui les résoudra. ( Isaac Asimov )
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

Yeah, I do see your point about having to learn a new language. While actionscript 3 is very javascript like and sane, it is still a new thing to learn.

Btw, Adobe never released any Flash Mx, they have only used the CS brand for Flash since they bought Macromedia.

And yeah, having the code in French sure limits the amount of people that can do the reverse engineering. Sure, you'd guess a lot of the language, but it's still an obstacle. One that I have no time to work on.

Well, at least I got to went my feelings in one place where we could have a civil discussion, instead of me just going posting crazy and spamming lots of topics with the idea. It would likely have lead to the same conclusion, but with me causing a lot of unneeded trouble.

So I guess we can agree that if someone started paying for a new player, Flash would be a likely candidate. But that's not reality.

Btw, if anyone wants a helping hand in doing any kind of Flash, do contact me, I usually hang around in ##flash on the IRC network freenode.
Currently working on a redesign of Court-records.net.
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

I have Flash 8. It's just a shame that I can't code either (nor can I make animations in it :p).
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

Here is my advice, get at least CS 3, so that you get access to ActionScript 3, it is an major upgrade from the old ActionScript 2 language. It's faster, got access to stuff as 2 does not, saner and other positive things about it that as 2 lacks.
Currently working on a redesign of Court-records.net.
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

I can't. I don't own a money tree. :(
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

So, there is a student discount on Flash. Maybe Unas qualifies?
Currently working on a redesign of Court-records.net.
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

Canvas is free and easier to learn.
User avatar
henke37
Security expert / tools programmer
Posts: 3031
Joined: Wed Mar 04, 2009 9:42 pm
Gender: Male
Spoken languages: Swedish,English
Location: Sweden
Contact:

Re: Redoing the player in Flash

Post by henke37 »

Canvas is not even finished, so there can't be much learning material. Flash on the other hand comes with the equivalent of multiple books in terms of help files. And that is not counting the loads of tutorials online and actual books that you can throw at people.

As for the cost, some stuff simply costs if you want quality. And the compiler is 100 % free. Grab a plugin for your favorite code editor and start coding, no money required. There are even multiple editors dedicated to actionscript (such as Flex Flash builder and Flash develop.

I believe this takes care of both of your concerns.
Currently working on a redesign of Court-records.net.
User avatar
Meph
Posts: 13439
Joined: Mon Nov 10, 2008 10:07 pm
Gender: Male
Spoken languages: English
Location: Probably Disneyland Paris... or the UK

Re: Redoing the player in Flash

Post by Meph »

If we use canvas, we're future-proof. Unas has made his mind up, anyway.
Broocevelt
Moderator
Posts: 7319
Joined: Fri Sep 11, 2009 6:06 pm
Gender: Female
Spoken languages: ES/FR/EN/DE
Location: Spain
Contact:

Re: Redoing the player in Flash

Post by Broocevelt »

But... What are the features that Canvas has, that Flash Player hasn't? (POsitive features)
Just a question.
User avatar
Singapore123
Posts: 2085
Joined: Wed May 05, 2010 8:56 am
Gender: Male
Spoken languages: English, 1337, french, spanish,

Re: Redoing the player in Flash

Post by Singapore123 »

Well, henke, if you think you're good then try making one!
I would like to see a template.
Post Reply