Welcome![Sign In][Sign Up]
Location:
Search - java repaint

Search list

[Otherjavagame1245

Description:  ? 部分内容   首先我们在init()方法中加载所有游戏必要的资源,包括声音,鼠标事件的监听、背景等相关设置。利用addBomb()方法增加bomb的数量、初始位置及初始化颜色。再利用start()启动线程。线程调用run()方法,处理炸弹下降运动down()。Repaint()会在每一个单位时间调用paint()方法不断的刷新屏幕,paint()调用Bomb.addBomb()绘制炸弹。当游戏者按下鼠标,mousePress()事件激活,判断是否点中了炸弹。如果点中addScore()自动加1分。如果没有点中炸弹,炸弹继续下降,当撞到屏幕wasHitEarth()方法激活,其内调用death()方法,减少Denfenser.life生命点,同时audio.play()处理声音的播放,用以提示游戏者。当你的生命点数小于0时”Game Over”。-first part of the init () method to load the game all the necessary resources, including the voices of the mouse wiretapping, and other relevant background set. Use addBomb () method to increase the number of bomb, the initial location and initialization color. Reuse start () activated threads. Call threads run () method to deal with bomb dropped down Movement (). Hamas () in a unit time per call to paint () method is constantly refresh the screen, paint () call Bomb.addBomb () to draw bomb. When pressed mouse game, mousePress () activation of the incident to determine whether the point of the bomb. If the point addScore () an automatic points. If there is no point bombs, continued to decline, hit the screen wasHitEarth () method is activated, Calling within their death (), to reduce Denfe
Platform: | Size: 357376 | Author: 11 | Hits:

[Otherjava2

Description: 画出每一帧: 剩下的就是将每一帧图象绘出。在上例中调用了applet的repaint() 来绘出每一帧图象。 -Draw each frame: the rest is to draw each frame image. In the above example calls the applet' s repaint () to draw each frame image.
Platform: | Size: 1024 | Author: langhua | Hits:

[Game ProgrammovingBallAndRepaint

Description: Java Applet for moving ball in a fixed path with multicolor rectangles. Repaint is good function used. -Java Applet for moving ball in a fixed path with multicolor rectangles. Repaint is good function used.
Platform: | Size: 1024 | Author: cogent | Hits:

[2D GraphicMiniDrawPad

Description: Java画图板,支持repaint(),形状保存,图片保存-Java drawing board, support the repaint (), shape save, save the picture
Platform: | Size: 6144 | Author: love17914 | Hits:

[JSP/JavaDESSIN

Description: 画图板的java小程序,网上也有很多的例子,这个例子比较简单,好理解,充分理解repaint的作用-The Java applet to the drawing board, the Internet there are many examples, this example is relatively simple, easy to understand, to fully understand the role of the repaint
Platform: | Size: 9216 | Author: 羽夕 | Hits:

CodeBus www.codebus.net