Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ò»¸ö¼òµ¥µÄJava 3DÔ´´úÂë

Õâ¶ÎÔ´´úÂëʵÏÖÁËÔÚÒ»¸ö´°ÌåÖÐÏÔʾһ¸ö³¡¾°£»ÒÔÒ»¸öÆåÅ̸ñ×öµÄµØÃ棬ÔÚµØÃæÉϸ¡×ÅÒ»¸öÀ¶É«µÄÇòÌ壬ÔÚ³¡¾°ÖÐÓÐÒ»¸ö»·¾³¹âºÍÒ»¸öÖ±Éä¹â£¬ÊµÏÖÁËÓÃÊó±êÈ«½Ç¶ÈµÄ¹Û²ì³¡¾°µÄ¹¦ÄÜ¡£´ÓijÖÖÒâÒåÉÏÀ´ËµÕâµÄȷʵÏÖÁËÒ»²¿3DÓÎÏ·×îԭʼµÄ¿ò¼Ü¡£
´úÂëÊÇÕÕ×Å¡¶Killer Game Programming in Java¡·Ò»ÊéÖйØÓÚ3DÓÎÏ·ÖÆ×÷µÄÄDz¿·ÖдµÄ£¬ÓÉÓÚ´ËÊéÊÇÓ¢ÎİæµÄ¾Ý˵ÔÚ¹úÄÚÒ²Âò²»µ½ÖÐÎÄ·­Òë°æµÄ£¬¿´µÃºÜ·ÑÁ¦£¬±¾ÈËÓ¢ÎIJ»ºÃ¡£Ö»ÄÜÂýÂýµÄÑо¿ÊéÖеÄÔ´´úÂë¡£
ÏÂÃæËµÃ÷ÏÂÔ´´úÂëµÄÎļþ¹¦ÄÜ
GameMain.java - ³ÌÐòµÄÈë¿Ú¡£
ScreenManager.Java - ʵÏÖÒ»¸öºÜ¼òµ¥µÄ´°ÌåÀà´ÓJFrameÅÉÉú£¬Ä¿Ç°Ö»·µ»ØÒ»¸ö´°Ì壬ÒÔºó¿ÉÄÜʵÏÖ×ÔӵŦÄÜ¡£
WrapCheckers3D.Java - ʵÏÖÒ»¸ö¼òµ¥µÄ3D³¡¾°À࣬ÄÜʵÏÖÒ»¸ö¼òµ¥µÄÊó±ê²Ù×÷¡£
CheckerFloor.Java - ʵÏÖÒ»¸ö¹ú¼ÊÏóÆå°ãµÄÆåÅ̸ñ×öÀ´³¡¾°ÖеĵØÃæ¡£
ColouredTile.Java - ÅÉÉú×ÔShape3DÀ࣬ÄÜʵÏÖÒ»¸öÕý·½ÌåÆ½Ãæ£¬ÓÃÀ´ÎªCheckerFloorÀàʵÏÖÆåÅ̸ñ
GameMain.Java
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class GameMain {
private static int scrWidth = 800;
private static int scrHeight = 600;
private static int scrBitdepth = 32;
private JFrame gameFrame;
private WrapCheckers3D wrap;

public static void main(String[] args)
{
GameMain game = new GameMain();
}

public GameMain()
{
ScreenManager screen = new ScreenManager(scrWidth,scrHeight,scrBitdepth,"Java 3D Test");
screen.setWindowMode();
gameFrame = screen.getFrame();
wrap = new WrapCheckers3D(scrWidth,scrHeight);
gameFrame.add(wrap);
}

}

ScreenManager.Java
import java.awt.Dimension;
import java.awt.DisplayMode;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class ScreenManager {
private GraphicsDevice device;
private JFrame frame;
private String title;
private boolean isResizable;
private boolean isWindowM


Ïà¹ØÎĵµ£º

Java°ü×°Ààѧϰ

ÎÒÃÇÓ¦ÓÃijÖÖÊý¾ÝÀàÐÍʱ£¬ºÜ¶àʱºòÒª½øÐÐÀàÐÍת»»µÈ²Ù×÷¡£ÔÚDelphiÖУ¬ÀàÐÍת»»º¯Êý¸Ð¾õºÜÁãÂÒ£¬Èç×Ö·û´®×ªÕûÐΡ¢ÕûÐαä×Ö½ÚÊý×éµÈµÈ¡£
¶øÔÚJAVAÖУ¬ÒѾ­½«JavaµÄ»ù±¾Êý¾ÝÀàÐÍÓëÆäÌṩÁËһЩ³£ÓõÄÀàÐͲÙ×÷µÄ·½·¨½øÐÐÁË·â×°£¬ÕâÑù²ÅÓÐÒ»ÇнԶÔÏóµÄ¸Ð¾õ¡£
ÔÚѧϰ°ü×°Ààʱ£¬ÕÒÁ˼¸¸ö±È½ÏÓÐÒâ˼µÄÀà½øÐÐÁËѧϰ£¡
Integer
I ......

java IOÁ÷ ·ÖÎö


Ò»¡¢
IO
Á÷µÄÈýÖÖ·ÖÀ෽ʽ
    1.
°´Á÷µÄ·½Ïò·ÖΪ£ºÊäÈëÁ÷ºÍÊä³öÁ÷
    2.
°´Á÷µÄÊý¾Ýµ¥Î»²»Í¬·ÖΪ£º×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷
    3.
°´Á÷µÄ¹¦Äܲ»Í¬·ÖΪ£º½ÚµãÁ÷ºÍ´¦ÀíÁ÷
   
¶þ¡¢
IO
Á÷µÄËÄ´ó³éÏóÀࣺ
   
×Ö·ûÁ÷£º
Reader Writer ......

Ò»¸öJava³ÌÐòÔ±Ó¦¸ÃÕÆÎÕµÄ10Ïî¼¼ÄÜ


Ô­ÎÄÁ´½Ó£ºhttp://student.csdn.net/space.php?uid=22846&do=thread&id=205&page=1
1¡¢Óï·¨
£º±ØÐë±È½ÏÊìϤ£¬ÔÚд´úÂëµÄʱºòIDEµÄ±à¼­Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
2¡¢ÃüÁî
£º±ØÐëÊìϤJDK´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡ ......

java µÄ×Ô´ø¼¸ÖÖÆ¤·ôµÄÀàÃû

javax.swing.plaf.metal.MetalLookAndFeel
com.sun.java.swing.plaf.windows.WindowsLookAndFeel
com.sun.java.swing.plaf.motif.MotifLookAndFeel
com.sun.java.swing.plaf.mac.MacLookAndFeel
com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel //java6ÐÂÆ¤·ô£¬²£Á§Í¸Ã÷
ÎÒµÄ×ÊÔ´ÖÐÓÐÏà¹Ø java swing ·½ÃæµÄ½Ì³Ì£¬j ......

java¼¯³É¿ª·¢¹¤¾ßEclipseÓënetbeans±È½Ï


EclipseÓënetbeansʹÓÃÆÀ²â
½çÃæ
1 ÔÚ½çÃæÉÏnetbeans±È½ÏƯÁÁ,ÓѺá£µÃ·Ö 9
2 EclipseÓкÜÇ¿µÄ¶¨ÖÆÐУ¬Ã»netbeansÃÀ¹Û¡£ÊʺϸßÊÖ µÃ·Ö 8
¹¦ÄÜ
²»×ö±È½Ï
̸һЩ¸öÈË¿´·¨:ÔÚ¹¦ÄÜÉÏEclipseÖ§³Ö´óÁ¿µÄÀ©Õ¹,²»½ö½öÊÇÒ»¸ö java¿ª·¢¹¤¾ß,¸ü¿ÉÒÔÓÃÀ´¿ª·¢ c c++
phpµÈµÈ,¹¦ÄÜ¿ÉÒÔÎÞÏÞµÄÀ©Õ¹.netbeansÒ²Ö§³ÖÀ©Õ¹,¿ÉÒ²ÏÖÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ