📄 animtour3d.java
字号:
// AnimTour3D.java// Andrew Davison, April 2005, ad@fivedots.coe.psu.ac.th/* The usual checkboard world and a user-controlled 3D sprite (the tourist) who has an animated walking movement. The tourist cam move about on the XZ plane but can not move off the board. No scenery and obstacles, but it's easy to borrow code from /Tour3D*/import javax.swing.*;import java.awt.*;public class AnimTour3D extends JFrame{ public AnimTour3D() { super("Animated 3D Tour"); Container c = getContentPane(); c.setLayout( new BorderLayout() ); WrapAnimTour3D w3d = new WrapAnimTour3D(); c.add(w3d, BorderLayout.CENTER); setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); pack(); setResizable(false); // fixed size display setVisible(true); } // end of AnimTour3D()// ----------------------------------------- public static void main(String[] args) { new AnimTour3D(); }} // end of AnimTour3D class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -