一、目的是什么
兒童編程啟蒙?
專業(yè)的游戲編程?
二、基于Minecraft的官方API開發(fā)
《零基礎(chǔ)學(xué)Minecraft編程》 Adventures in Minecraft 書本后附錄里的資源索引很有用,順藤摸瓜可以找到很多有價值的參考資料。
開發(fā)環(huán)境準(zhǔn)備:
購買Minecraft正版軟件, 只有正版的才有多人聯(lián)機(jī)模式
有經(jīng)濟(jì)能力的就多多支持!-
下載 Starter Kit Mac
a. CraftBukkit ,
基于python的Minecraft server ?
基于c/c++的Minecraft server ? cuberite,Lua Plugin? 學(xué)學(xué)C++編程
基于Go的?
b. RaspberryJuice 插件 , https://github.com/zhuowei/RaspberryJuice, 參考 Minecraft-Pi API 協(xié)議
c. MinecraftStuff,圖形庫? 啟動CraftBukkit server
cd ~/Downloads/AdventuresInMinecraft-Mac/MyAdventures
./StartServer.command在MyAdventures目錄中編寫代碼(因為代碼依賴該目錄下的mcpi等lib文件)
cd ~/Downloads/AdventuresInMinecraft-Mac/MyAdventures
vim hello_world.py (參考 Minecraft API, 里面提供了很多API示例,值得學(xué)習(xí))
python2 hello_world.py #運行代碼,目前還只支持python2.7?

https://www.stuffaboutcode.com/p/minecraft.html
在新版本的Lancher中,如何指定server端ip? 購買正版后,會有聯(lián)機(jī)模式,可輸入ip等
服務(wù)端:Vanilla,Bukkit,CraftBukkit,Spigot ?
似乎缺少生物(Mobs)相關(guān)的api?難道生物也是block?鍬、斧等(Items)裝備api?
Items are objects that exist only within the player's inventory and hands
Mobs are living, moving game entities. The term "mob" is short for "mobile"
https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5
知識點:
- 編程環(huán)境搭建
- 建筑
- 玩家互動等
三、Mod
https://files.minecraftforge.net/
四、Minecraft clone
五、游戲編程的一些基本問題
可以通過官方api,mod制作的了解,深入理解游戲的機(jī)制。
地圖生成機(jī)制?
https://zhuanlan.zhihu.com/p/43566129
https://zhuanlan.zhihu.com/p/43579344
https://zhuanlan.zhihu.com/p/43758301游戲中的尋路算法
https://gameinstitute.qq.com/community/detail/119033生物和玩家互動機(jī)制, 跟蹤與閃避算法?
跟隨 or 對抗 ?3D角色模型,角色動畫
《AI for Game Developers》《游戲開發(fā)中的人工智能》:
·使用基于勢函數(shù)的單一技術(shù)處理追趕、躲避、聚集和避障等問題。
·使用包括路徑點和經(jīng)典a*算法解決尋徑問題。
·利用ai腳本擴(kuò)充ai引擎的功能,讓設(shè)計者和玩家更好地設(shè)計和玩游戲。
·給你的游戲角色賦予基于規(guī)則的ai推理能力,包括模糊邏輯和有限狀態(tài)機(jī)。
·使用概率分析和諸如貝葉斯推理的高級技術(shù)處理不確定性問題。
六、高端玩法?
強(qiáng)化學(xué)習(xí)?微軟的mod?
gan生成地圖?
環(huán)境模擬 ?
七、一些漫無邊際的想法
- 真實世界激光點云建模轉(zhuǎn)換成我的世界地圖? 巴黎圣母院?
我的世界 尋路算法 Path-finding Algorithm
[游戲中的AI算法總結(jié)與改進(jìn)](https://blog.csdn.net/cordova/article/details/51607407)
Bot with PathFinding AI that autonomeously switches between three Algorithms:
1. Dijkstra's Concurrent
2. semi-A*
3. a simple Chase algorithm
[http://www.mcbbs.net/thread-846195-1-2.html](http://www.mcbbs.net/thread-846195-1-2.html)
Minecraft開發(fā)者生態(tài)體系介紹:
https://www.spigotmc.org/wiki/what-is-spigot-craftbukkit-bukkit-vanilla-forg/
1. bukkit,基于Minecraft API開發(fā)功能
2. Forge, 修改Minecraft自身的代碼
[https://arghbox.wordpress.com/](https://arghbox.wordpress.com/)
目標(biāo):
1. 集齊所有牲畜
羊和兔子不能與狼共存,需要建圈舍, 兔子沒啥太大作用?
挖個坑種上麥子,吸引羊? 先建圈舍,再拿小麥吸引入圈?
流浪貓需魚馴服(釣魚竿),對付爬行者?
馬?
驢
2. 集齊所有農(nóng)作物
(缺少胡蘿卜、馬鈴薯、甜菜,南瓜,西瓜,可可豆)
3. 找到村莊
有助于集齊所有農(nóng)作物
找到一些有用的東西
4. 挖礦到基巖
鉆石礦 (足夠的食物,木頭,)
[https://www.zhihu.com/question/24459078/answer/42943529](https://www.zhihu.com/question/24459078/answer/42943529)
[](https://files.minecraftforge.net/)
[https://www.instructables.com/id/Python-coding-for-Minecraft/](https://www.instructables.com/id/Python-coding-for-Minecraft/)
[https://www.zhihu.com/question/24459078/answer/42943529](https://www.zhihu.com/question/24459078/answer/42943529)
[https://www.minecraft-downloads.com/minecraft-forge-mod-for-windows-and-mac/download/1-14/](https://www.minecraft-downloads.com/minecraft-forge-mod-for-windows-and-mac/download/1-14/)
1. 挖壕溝,中間有個高2個方塊的高地,人躲在高地上,第一個晚上,2個僵尸掉入壕溝,殺之
2. 第二天擴(kuò)壕溝,砍樹,挖煤,晚上,3個僵尸掉入壕溝,殺之
3. 第三個晚上,兒子一起聯(lián)機(jī),高地方塊敲掉一塊,忘記填上,僵尸涌入高地,2人合力殺之,我損失慘重,掉血慘。出現(xiàn)幻影
4. 第四個白天,吃肉補(bǔ)充,晚上,被幻影攻擊,掉入壕溝,再遭僵尸圍攻,死
挖到鐵礦石,制作剪刀,剪羊毛,制造床,睡覺,避免生成幻影。
5. 重生,連續(xù)2個白天,被爬行者爆炸,考慮用石頭加固高地危險地域
獲得小麥種子,種地
6. 狼掉入壕溝,無骨頭可馴化,把2只羊給吃了,a.狼沒吃豬?b.馴化的狼還會吃羊么
7. 河邊種甘蔗,提示狼溺水死了,好傷心啊,到哪里撿骨頭啊~
### 開發(fā)相關(guān)
[https://bdznh.github.io/Minecraft/](https://bdznh.github.io/Minecraft/)
[https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/2](https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/2)
[https://zhidao.baidu.com/question/530577791](https://zhidao.baidu.com/question/530577791)
[https://minecraft-zh.gamepedia.com/Minecraft_Wiki](https://minecraft-zh.gamepedia.com/Minecraft_Wiki)
下載:https://www.minecraft.net/en-us/download/alternative/
https://minecraft.gamepedia.com/Block
https://linux.cn/article-9480-1.html
深深的愛上了Minecraft
1. 官方:Minecraft
2. 官方開源項目:
[格式化 Minecraft 使用的數(shù)據(jù)](https://github.com/Mojang/DataFixerUpper)
[命令引擎(命令解析器和調(diào)度器)](https://github.com/Mojang/brigadier)
3. [微軟基于Minecraft的AI模擬環(huán)境](https://github.com/Microsoft/malmo)
4. 第三方mods?
mod是什么意思?
5. [模仿開源](https://www.michaelfogleman.com/projects/craft/)
https://raspberrypi.stackexchange.com/questions/8509/can-python-control-normal-minecraft-or-only-the-raspi-edition
https://mcshelfs.net/minecraft-download/
[https://adventuresinminecraft.github.io/](https://adventuresinminecraft.github.io/)
[https://www.stuffaboutcode.com/p/minecraft.html](https://www.stuffaboutcode.com/p/minecraft.html)
[https://minecraft.gamepedia.com/Development_resources](https://minecraft.gamepedia.com/Development_resources)
[https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5](https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5)
[https://www.stuffaboutcode.com/p/minecraft-api-reference.html](https://www.stuffaboutcode.com/p/minecraft-api-reference.html)
[https://juejin.im/post/5ccd142651882541cd485b38](https://juejin.im/post/5ccd142651882541cd485b38)