Share My Creation FIREWORKS

Beja

Expert
Licensed User
Longtime User
Nice and very realistic Bene.. thanks for sharing.
 

wonder

Expert
Licensed User
Longtime User
It's so pretty!!! Really, really nice!!! :)
 

Beja

Expert
Licensed User
Longtime User
Hi Bene,
Sorry but I only see a black screen. It said Completed Successfully.. No logs. pls see attached screenshot.
fireworks3.jpg
 

BeneBarros

Active Member
Licensed User
Longtime User
Hi Bene,
Sorry but I only see a black screen. It said Completed Successfully.. No logs. pls see attached screenshot. View attachment 51201
Change the screen size.
#MainFormWidth: 600
#MainFormHeight: 900
for
#MainFormWidth: 600
#MainFormHeight: 700

There is a button in the Y position 850

(Main) Change line 23 to
MainForm.RootPane.AddNode (bt, 10, 10, 90, 30)
 
Last edited:

Beja

Expert
Licensed User
Longtime User
Wonderful.. thanks Bene for sharing this.
How can I make the stop button enabled all time.. it's stopped the app once then when played again couldn't stop.

FirWorks.png
 

BeneBarros

Active Member
Licensed User
Longtime User
Wonderful.. thanks Bene for sharing this.
How can I make the stop button enabled all time.. it's stopped the app once then when played again couldn't stop.

View attachment 51243

Add just after line 40
B4X:
front (bt)

'Add sub

Private Sub front(f As Object)
    Dim jmf As JavaObject = f
    jmf.RunMethod("toFront", Null) 
End Sub
 

Attachments

  • xxx.jpg
    xxx.jpg
    104.6 KB · Views: 351
  • FireW02.zip
    282.3 KB · Views: 396
Last edited:

Informatix

Expert
Licensed User
Longtime User
I did a quick port of this example to SimpleGameEngine. There's still room for improvements (e.g. createRocket should not use a Canvas, Rocket should not use an ImageView, a light effect could be added when the rocket explodes...) Maybe later, if I have some time.
EDIT: I removed the canvas and the imageviews in the updated version.
 

Attachments

  • Fireworks_upd.zip
    282.2 KB · Views: 431
Last edited:

BeneBarros

Active Member
Licensed User
Longtime User
I did a quick port of this example to SimpleGameEngine. There's still room for improvements (e.g. createRocket should not use a Canvas, Rocket should not use an ImageView, a light effect could be added when the rocket explodes...) Maybe later, if I have some time.
Any improvement will be welcomed ..
I thank you.
 
Top