Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AS3] Flash Files with Box2d Engine #1848

Open
jhwgh1968 opened this issue Dec 5, 2020 · 4 comments
Open

[AS3] Flash Files with Box2d Engine #1848

jhwgh1968 opened this issue Dec 5, 2020 · 4 comments
Labels
avm2 AVM2 (ActionScript 3.0) issues performance

Comments

@jhwgh1968
Copy link

(I thought about putting this under the tracking issue, but since it was specific to a particular engine that might work on a subset of complete AS3, I decided to make a separate issue and let it be linked as blocking.)

I have a number of flash files which use a port of the Box2D physics engine to AS3. The simplest one is their engine demo, which I managed to grab while it was still available.

If this file can be made to work, it should unlock quite a number of other files as well. Other flash player projects have also found it a helpful test case for an AS3 implementation.

main_demo_21a.zip

@jhwgh1968
Copy link
Author

Blocked on #1368

@kmeisthax
Copy link
Member

This will be a good test once we have working AS3 events and most of the existing display object types wired in. It doesn't appear to require much else.

@Poopooracoocoo Poopooracoocoo added the avm2 AVM2 (ActionScript 3.0) issues label Mar 30, 2021
@jhwgh1968
Copy link
Author

A long overdue update.

Trying this file with master version ee52ce32, I am pleased to report it seems to work if I click through the AS3 warning. That said, the performance is significantly worse than the original flash -- where the library's entire point was to have good performance.

Based on this, I will leave it up to the team whether to close this or leave it open for further improvement.

@adrian17
Copy link
Collaborator

For the record, box2d is very much a good target for optimization and I regularly use it to test improvement PRs :)
I'm gonna keep it open till it's remotely usable at real-time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
avm2 AVM2 (ActionScript 3.0) issues performance
Projects
None yet
Development

No branches or pull requests

5 participants