Android下的推箱子游戏源码
一个推子游戏,SurfaceView下作的,没有效到系统控件,所以显示作用不是很理想。音效用MediaPlayer作的,音效播放不流通,我也因而被逼将按键音功能给屏避掉了。缺陷当然存在,但功能上仍是比较完整的,除常规的吊销/恢复/关卡选择等功能外,还支持屏幕方向自适应调整(按字母T键仿真屏幕旋转作用),多语言OSD介面(简体中文、英文)可以通过触屏上下左右划动或单击主人公相邻单元格控制主人公运运方向,也可以选择屏幕上方的工具栏图标进行相应操作(触控选择或按图标上的数字键)共收录100个游戏关卡,游戏选择图标4或图标5进行上一关/下一关选择关卡,也可以直接输入skxxx直接跳到第xxx关游戏自带地图修改器功能,地图修改好后保存,可以通过载入自定义游戏命令来运行修改好的游戏。本资料共包括以下附件:Sokoban\bin\com\android\GameControl\GameAboutView.class
Sokoban\bin\com\android\GameControl\GameEditor$EditorHilightCursor.class
Sokoban\bin\com\android\GameControl\GameEditor$ToolbarID.class
Sokoban\bin\com\android\GameControl\GameEditor$TouchEventHandler.class
Sokoban\bin\com\android\GameControl\GameEditor.class
Sokoban\bin\com\android\GameControl\GameHelpView.class
Sokoban\bin\com\android\GameControl\GameMainMenu$BackGroundMusicSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$BgMusicMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$GameSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$GameSettingMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$KeyBoardMusicMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$KeyBoradMusicSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$LanguageMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$LanguageSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$LoadDefaultMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$LoadDefaultSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MainMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MainMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MenuID.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MenuTouchEventHandler.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MusicExplorer.class
Sokoban\bin\com\android\GameControl\GameMainMenu$SystemSoundEffectSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$SystemSoundMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu.class
Sokoban\bin\com\android\GameControl\GameRunner$MoveDir.class
Sokoban\bin\com\android\GameControl\GameRunner$RunnerHilightCursor.class
Sokoban\bin\com\android\GameControl\GameRunner$RunningState.class
Sokoban\bin\com\android\GameControl\GameRunner$ToolbarID.class
Sokoban\bin\com\android\GameControl\GameRunner$TouchEventHandler.class
Sokoban\bin\com\android\GameControl\GameRunner.class
(A pusher game, made under SurfaceView, has no effect on system controls, so the display effect is not ideal. The sound effect is made by MediaPlayer. The sound effect does not play well, so I was forced to hide the key tone function from the screen. Of course, there are defects, but the functions are still relatively complete. In addition to the conventional revocation/recovery/level selection functions, it also supports adaptive adjustment of the screen direction (press the letter T key to simulate the screen rotation). The multilingual OSD interface (simplified Chinese and English) can control the hero's transport direction by touching the screen up and down, left and right, or clicking the adjacent cells of the hero, You can also select the toolbar icon on the top of the screen for corresponding operations (touch selection or press the number keys on the icon) to collect a total of 100 game levels, select the icon 4 or icon 5 to select the previous/next level, or directly enter skxxx to jump to the xxx level of the game with the map modifier function. After the map is modified, it can be saved, and you can run the modified game by loading a custom game command. This document includes the following annexes:
Sokoban\bin\com\android\GameControl\GameAboutView.class
Sokoban\bin\com\android\GameControl\GameEditor$EditorHilightCursor.class
Sokoban\bin\com\android\GameControl\GameEditor$ToolbarID.class
Sokoban\bin\com\android\GameControl\GameEditor$TouchEventHandler.class
Sokoban\bin\com\android\GameControl\GameEditor.class
Sokoban\bin\com\android\GameControl\GameHelpView.class
Sokoban\bin\com\android\GameControl\GameMainMenu$BackGroundMusicSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$BgMusicMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$GameSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$GameSettingMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$KeyBoardMusicMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$KeyBoradMusicSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$LanguageMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$LanguageSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$LoadDefaultMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$LoadDefaultSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MainMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MainMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MenuID.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MenuTouchEventHandler.class
Sokoban\bin\com\android\GameControl\GameMainMenu$MusicExplorer.class
Sokoban\bin\com\android\GameControl\GameMainMenu$SystemSoundEffectSettingMenu.class
Sokoban\bin\com\android\GameControl\GameMainMenu$SystemSoundMenuItem.class
Sokoban\bin\com\android\GameControl\GameMainMenu.class
Sokoban\bin\com\android\GameControl\GameRunner$MoveDir.class
Sokoban\bin\com\android\GameControl\GameRunner$RunnerHilightCursor.class
Sokoban\bin\com\android\GameControl\GameRunner$RunningState.class
Sokoban\bin\com\android\GameControl\GameRunner$ToolbarID.class
Sokoban\bin\com\android\GameControl\GameRunner$TouchEventHandler.class
Sokoban\bin\com\android\GameControl\GameRunner.class)
页:
[1]