I am trying to port an old arcade game to codename one. I am using the
canvas and have something drawing, but I can only see it when Im literally
resizing the emulator window, other than that it is white. Any ideas??
Here is how I add my game to a form and keep it repainting:
Form f = new Form("");
f.setLayout(new BorderLayout());
DDragon game = new DDragon(null, new DDApp());
f.add(BorderLayout.CENTER,game);
new UITimer(new Runnable() {
public void run()
{
if (game!=null)
{
game.run();
game.repaint();
}
else
{
System.out.println("game still null");
}
}
}).schedule(10, true, f);
f.show();
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/06699d9d-6530-48ca-bb15-f8f3336538c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.