Friday 21 December 2018

Google + Content reposting - May 26 2015


Digital and Interactive Games 2015 – Term 2, Week 5, Session 2
Extend Application

Today – Effects and Transformation

BoxBlur blur = new BoxBlur(1.0, 1.0, 1);

button1 = new Button(“Click Me”)l

Rotate rotate = new Rotate();

button1.setEffect(blur);

button2 = new Button(“Rotate”);
rotate.setAngle(45.0);

Label label1l
Scale scale1;

pane.getChildren().add(button1);
pane.getChildren().add(button2);
pane.getChildren().add(label1);

Scale.SetX(0.5);
Scale.SetY(3.0);
Scale.setPivot(button3, getWidth());
Label1.getTransform().add(scale);

Reflection reflection = new Reflection();

reflection.SetTopOpacity(0.7);
reflection.setBottomOpacity(0.3);



Border Example

BorderPane pane = new BorderPane();
scene1 = new Scene(pane, 500, 600);


staage,setScene(scene1)l

HBox  header = new HBox();
HBox footer = new HBox();

pane.setTop(header);
pane.setBottom(footer);

header.getChildren().add(headerText);
footer.getChildren().add(footerText);

vBox leftMenu = new vBox();


#gamedesign   #gameprogramming   #java   #programming   #tafe  





No comments:

Post a Comment