language/java실습
[java,자바] 팩맨을 이용해서 쓰레드 실습
import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.Toolkit; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import javax.swing.JFrame; public class PackmanT extends JFrame implements Runnable{ Image img; MyCanvas mc; ///////////////////// Dimension frameSize, ca..
2021. 1. 22. 15:48
최근댓글