java 小游戏 推箱子
时间: 2023-10-06 20:07:17 浏览: 98
推箱子是一种经典的Java小游戏,玩家需要在游戏中通过推动箱子来完成任务。根据引用[2]提到的内容,这个游戏可能是作者在学校实训中制作的一个项目。玩家需要完成一系列任务,并且可以根据自己的想法逐渐完善游戏,最后制作出自己的小游戏。根据引用提到的代码片段,游戏中使用了一个栈来存储每一步的情况,包括是否推到了箱子。通过调用`goBack()`方法,可以实现角色回退到上一步的功能。通过这些步骤和代码,可以制作一个简单但有趣的Java小游戏推箱子。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [java小游戏 推箱子 java小游戏 推箱子](https://download.csdn.net/download/s13166803785/85744797)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Java实现推箱子小游戏](https://blog.csdn.net/binflcy/article/details/117846157)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文
相关推荐














