freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

j2me設(shè)計論文-3d迷宮手機游戲-文庫吧

2024-10-16 18:18 本頁面


【正文】 rivate final Image error。 private final Image splash。 private MenuList menuList。 //Construct the midlet public Maze3DMIDlet() { error = makeImage(/)。 splash = makeImage(/)。 canvas3D = new MazeCanvas(this)。 (splash, (this))。 } public void startApp() 開始畫面 主程序 屏幕繪圖 顯示 win 顯示 lost 顯示歷史記分表 開始 屏幕角色 控制鼠標(biāo)找尋出口 初始化參數(shù) 死 胡同 時 顯示 END 時 圖 本程序的主流程圖 本科課程設(shè)計論文 5 { Displayable current = (this).getCurrent()。 if (current == null) { // check that the API is available? boolean isApiAvailable = (() != null)。 menuList = new MenuList(this, isApiAvailable)。 if (!isApiAvailable) { quitApp()。 } else { Alert splashScreen = new Alert(Maze3D, null, splash, )。 (3000)。 (this).setCurrent(splashScreen, menuList)。 } } else { // In case the MIDlet has been hidden if (current == canvas3D) { ()。 } (this).setCurrent(current)。 } } public void pauseApp() { ()。 } public void destroyApp(boolean unconditional) { ()。 } // gets informed when the canvas itself switches the view 本科課程設(shè)計論文 6 void viewSwitched() { ()。 } // starts a new ga,e void newGame() { ()。 ()。 (this).setCurrent(canvas3D)。 } // shows the menu thread void showMenu() { ()。 (this).setCurrent(menuList)。 } // quits the app but first stops the game thread void quitApp() { ()。 notifyDestroyed()。 } // shows the Graphics3D properties list void show3DProperties() { Graphics3D g3d = ()。 (this).setCurrent( new Graphics3DProperties(g3d, this))。 } // switches the canvas39。 view void switchView() { ()。 ()。 (this).setCurrent(canvas3D)。 } // shows the main canvas void showMain() { ()。 (this).setCurrent(canvas3D)。 本科課程設(shè)計論文 7 } // loads a given image by name static Image makeImage(String filename) { Image image = null。 try { image = (filename)。 } catch (Exception e) { (error loading image)。 } return image。 } } 3 設(shè)計 總結(jié) 通過本次對 3D 游戲的設(shè)計調(diào)試,解決了我原來上課時所不熟悉的調(diào)試過程,文檔格式、代碼風(fēng)格、變量命名等事無巨細都應(yīng)該有標(biāo)準(zhǔn) 遵照標(biāo)準(zhǔn)會使我們的工作更為輕松標(biāo)準(zhǔn)不一定是最好的,但一定是對 的。 一直以來,從沒是有試著完整的做一個 課程設(shè)計 ,總是做一些小功能的實現(xiàn)。以為 課程設(shè)計 無非是這些小功能的拼湊。直到有一天,接受一個 題目 時,覺得力不從心 。由于是一個人,所 以幾乎沒有全局的感念,無論怎樣想都有很多不能顧及,而時間又緊迫 , BUG 多多、功能簡陋 …… 這時候你就會體會到完成一個項目決不是模塊的累加 。這個時候我是非??释粋€團隊的,起碼大家一起想會周到一些。 遇到困難有同學(xué)和老師的幫助和指導(dǎo),讓我對 J2ME 這門課程產(chǎn)生了濃厚的興趣。 參考文獻 [1] The Apache Ant User Manual [2] 李研 , 劉晶晶 .J2ME 技術(shù)開發(fā)與應(yīng)用 .機械工業(yè)出版社 . [3] 潘 穎 .王磊 .開發(fā)大全 版社 .2020 [4] , Recurrent Percepptions Time Modeling. Neural ,5(1):2438 本科課程設(shè)計論文 8 附錄:程序源代碼 import .*。 import .*。 import .*。 import .*。 // Main class. It setups the 3D scene and does the movements // and rendering class MazeCanvas extends GameCanvas implements Runnable { // Height of the walls private final static float WALL_HEIGHT = 。 // overall side of the maze private final static float MAZE_SIDE_LENGTH =200f。 // amount to advance at each step private final static float STEP = 。 // amount to rotate each time private final static float ANGLE_STEP = 。 // millis to wait in the main loop private final static int MILLIS_PER_TICK = 5。 // Size of the steps to directions x and z // stored to avoid extra trigonometric calculations private float stepz = STEP, stepx = 0f。 // player39。s location private float locationx = 0f, locationz = 0。 // player39。s rotation private float angley = 0f。 // flags whether we are looking the game from the top private boolean topView = false。 本科課程設(shè)計論文 9 // flags to keep the drawing going private volatile boolean playing = true。 // stores the amount of frames per second being displayed private volatile float fps = 0。 // stores how long has taken to run thorugh the maze private volatile long gameStart = 0。 // stores how long has taken to run thorugh the maze private volatile long duration = 0。 // indicates whether the game has finished private boolean finished。 // Parent MIDlet private final Maze3DMIDlet midlet。 // Graphics 3D global instance private Graphics3D g3d。 // the world of the application private World world。 // the world has 2 cameras private Camera camera, topCamera。 // world39。s background private Background background = null。 // simple rectangular mesh used to locate the player private Mesh locationSquare = null。 // wall alternate appeareances private Appearance wallClearAppearance = new Appearance()。 private Appearance wallAppearan
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1