## Nimified 'Dodge the Creeps' and 'Game of Life'
For now only Dodge the Nim works fully on 1.0. This however should show you how a lot of things are done in godot-nim.
NOTE: If you get a NilAccessError on the method `onMobTimerTimeout` please load the Mob scene in the editor on the Main Node.
So select the Main node and in your Inspector you should see 'mob' as one of the script variables, load the Mob scene located in the `scenes` folder. You might have to restart your editor to see this after compiling the Nim source. And it might be gone after another restart.
Most likely this is a Godot/GDNative thing, and you could do this using only code and not using a script variable per se.
Make sure you have Godot(3.0+) and Nim(1.0+) and the [bindings](https://github.com/pragmagic/godot-nim) installed when you want to try these out. Run `nake build` in a samples directory to get started.
Code isn't pretty as I'm still learning and I wrote this to orientate myself around both projects.
Thanks to Skaruts for bringing the samples up to date for Nim 1.0
### TODO
Add the sound effects and particles to the Dodge the Creeps project.
FIX the nimway project to work on 1.0
没有合适的资源?快使用搜索试试~ 我知道了~
在 Godot 和 Nim 中 躲避 Creeps 和 Conways的生命游戏_Nim_代码_下载
共108个文件
import:16个
png:15个
nim:15个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 2 浏览量
2022-06-23
17:34:45
上传
评论
收藏 3.84MB ZIP 举报
温馨提示
目前只有 Dodge the Nim 完全适用于 1.0。然而,这应该向您展示在 godot-nim 中是如何完成很多事情的。 注意:如果您在方法上收到 NilAccessError,onMobTimerTimeout请在主节点的编辑器中加载 Mob 场景。因此,选择主节点,在 Inspector 中,您应该看到“mob”作为脚本变量之一,加载位于scenes文件夹中的 Mob 场景。编译 Nim 源代码后,您可能需要重新启动编辑器才能看到此内容。它可能会在再次重新启动后消失。 这很可能是 Godot/GDNative 的事情,你可以只使用代码而不是使用脚本变量本身来做到这一点。
资源推荐
资源详情
资源评论
收起资源包目录
在 Godot 和 Nim 中 躲避 Creeps 和 Conways的生命游戏_Nim_代码_下载 (108个子文件)
9sii4k0j.bmp 4KB
nim.cfg 115B
nim.cfg 115B
nim.cfg 91B
nakefile.nim.cfg 20B
nakefile.nim.cfg 20B
nimlib.gdnlib 443B
nimlib.gdnlib 443B
nimlib.gdnlib 436B
GoL.gdns 245B
Cell.gdns 224B
test_poly.gdns 219B
Player.gdns 215B
Main.gdns 211B
main.gdns 209B
Mob.gdns 209B
Hud.gdns 209B
project.godot 675B
project.godot 570B
project.godot 477B
enemyFlyingAlt_1.png.import 700B
enemyFlyingAlt_2.png.import 700B
playerGrey_walk1.png.import 700B
playerGrey_walk2.png.import 700B
enemySwimming_1.png.import 697B
enemySwimming_2.png.import 697B
enemyWalking_1.png.import 694B
playerGrey_up2.png.import 694B
enemyWalking_2.png.import 694B
playerGrey_up1.png.import 694B
icon.png.import 674B
cell.png.import 657B
icon.png.import 649B
icon.png.import 649B
gameover.wav.import 512B
House In a Forest Loop.ogg.import 441B
README.md 1KB
README.md 1KB
nakefile 1.07MB
main.nim 4KB
gol.nim 3KB
main.nim 2KB
player.nim 2KB
convert.nim 2KB
nakefile.nim 2KB
nakefile.nim 2KB
nakefile.nim 2KB
hud.nim 1KB
test_poly.nim 734B
mob.nim 732B
cell.nim 576B
stub.nim 274B
stub.nim 250B
stub.nim 139B
stub.nimble 235B
stub.nimble 163B
stub.nimble 163B
config.nims 2KB
config.nims 2KB
config.nims 2KB
House In a Forest Loop.ogg 1.36MB
House In a Forest Loop.ogg-8e554a1330e4ae364eda6047fe717533.oggstr 1.36MB
preview.png 14KB
playerGrey_walk2.png 5KB
playerGrey_up1.png 5KB
playerGrey_walk1.png 5KB
playerGrey_up2.png 5KB
enemyFlyingAlt_1.png 4KB
enemySwimming_2.png 4KB
enemyFlyingAlt_2.png 4KB
enemyWalking_2.png 4KB
enemySwimming_1.png 3KB
enemyWalking_1.png 3KB
icon.png 3KB
icon.png 3KB
icon.png 3KB
cell.png 104B
gameover.wav-944a3aa74701aafe6d87d1a40186f241.sample 300KB
playerGrey_walk2.png-ebc8a4a8e78075d773235e5ccdb763a6.stex 5KB
playerGrey_up1.png-aa8895b35bd9e91bc5c98c569f9960c9.stex 5KB
playerGrey_walk1.png-6e3683505061efbcedb14de666c244a8.stex 5KB
playerGrey_up2.png-03d4525fdaa671ce2c20dc82ceff4df1.stex 5KB
enemySwimming_2.png-8047fa43fe1eb727391543daa838e153.stex 5KB
enemyFlyingAlt_1.png-e55523ede5c0e21ae63f4c282a8c2ca9.stex 4KB
enemySwimming_1.png-d188d6b80689d4f1cea218dec2a3ef25.stex 4KB
enemyWalking_2.png-129eaca5d1fcaba01b5f5baac65e5955.stex 4KB
enemyFlyingAlt_2.png-345c3e2dabbc0dee2d7136eb2bbb52cf.stex 4KB
icon.png-487276ed1e3a0c39cad0279d744ee560.stex 3KB
icon.png-487276ed1e3a0c39cad0279d744ee560.stex 3KB
enemyWalking_1.png-a388e49ab47a01f8e8fcecc60461315e.stex 3KB
cell.png-81c2fb69d7e22398fca95d5a84080720.stex 136B
default_env.tres 3KB
default_env.tres 3KB
default_env.tres 594B
RobotoRegular.tres 115B
main.tscn 4KB
Hud.tscn 3KB
Mob.tscn 2KB
Cell.tscn 2KB
Main.tscn 2KB
共 108 条
- 1
- 2
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功