• 大小: 23.76MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-14
  • 语言: 其他
  • 标签: 开源项目  

资源简介

C-Dogs SDL 是老的 DOS 下的街机游戏 C-Dogs 在现在新的操作系统上的移植版本。C-Dogs 是一个射击类的街机游戏,玩家可以单独玩或者和其他玩家一起完成任务。内置很多任务。

资源截图

代码片段和文件信息

“““
Render animation in 8 rotations
adapted from http://clintbellanger.net/articles/isometric_tiles/

Args:
- layer
- action
- frames
- name
“““
import bpy
import sys
from math import radians

argv = sys.argv[sys.argv.index(“--“) + 1:]
layers = [int(layer) + 3 for layer in argv[0].split(‘‘)]
action = argv[1]
frames = int(argv[2])
name = ‘{}_{}‘.format(argv[3] action)

RESOLUTION = 24
frame_SKIP = 10

angle = -45
axis = 2 # z-axis
platform = bpy.data.objects[“armature“]
scene = bpy.data.scenes[0]
scene.objects.active = platform
platform.animation_data.action = bpy.data.actions[action]
for i in range(len(scene.layers)):
    if i < 3:
        scene.layers[i] = True
        continue
    scene.layers[i] = i in layers
render = scene.render
render.image_settings.file_format = ‘PNG‘
render.image_settings.color_mode =‘RGBA‘
render.alpha_mode = ‘TRANSPARENT‘
render.resolution_x = RESOLUTION
render.resolution_y = RESOLUTION
render.frame_map_new = 100 / frame_SKIP
scene.frame_end = (frames - 1) / frame_SKIP
original_path = ‘out/{}##‘.format(name)
path = ‘out/{}_{}_##‘
for i in range(0 8):
    # rotate
    temp_rot = platform.rotation_euler
    temp_rot[axis] += radians(angle)
    platform.rotation_euler = temp_rot

    # set filename so that up is first
    render.filepath = path.format(name (i + 6) % 8)

    # render animation
    bpy.ops.render.render(animation=True)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-14 08:02  cdogs-sdl-master\
     目录           0  2019-07-14 08:02  cdogs-sdl-master\.github\
     文件          20  2019-07-14 08:02  cdogs-sdl-master\.github\FUNDING.yml
     文件        9940  2019-07-14 08:02  cdogs-sdl-master\CMakeLists.txt
     文件       18046  2019-07-14 08:02  cdogs-sdl-master\COPYING
     文件        4639  2019-07-14 08:02  cdogs-sdl-master\README.md
     目录           0  2019-07-14 08:02  cdogs-sdl-master\build\
     目录           0  2019-07-14 08:02  cdogs-sdl-master\build\cmake\
     文件        2757  2019-07-14 08:02  cdogs-sdl-master\build\cmake\Copyright.txt
     文件         557  2019-07-14 08:02  cdogs-sdl-master\build\cmake\FindCCache.cmake
     文件        6074  2019-07-14 08:02  cdogs-sdl-master\build\cmake\FindSDL2.cmake
     文件        3893  2019-07-14 08:02  cdogs-sdl-master\build\cmake\FindSDL2_image.cmake
     文件        3893  2019-07-14 08:02  cdogs-sdl-master\build\cmake\FindSDL2_mixer.cmake
     目录           0  2019-07-14 08:02  cdogs-sdl-master\build\gcw-zero\
     文件        1349  2019-07-14 08:02  cdogs-sdl-master\build\gcw-zero\cdogs-sdl.png
     文件         208  2019-07-14 08:02  cdogs-sdl-master\build\gcw-zero\default.gcw0.desktop
     文件         986  2019-07-14 08:02  cdogs-sdl-master\build\gcw-zero\make_opk.sh
     文件         597  2019-07-14 08:02  cdogs-sdl-master\build\gcw-zero\readme_gcw.txt
     目录           0  2019-07-14 08:02  cdogs-sdl-master\build\haiku\
     文件          81  2019-07-14 08:02  cdogs-sdl-master\build\haiku\cdogs-sdl.sh
     目录           0  2019-07-14 08:02  cdogs-sdl-master\build\licenses\
     文件       24390  2019-07-14 08:02  cdogs-sdl-master\build\licenses\COPYING.MJSON.txt
     文件       24390  2019-07-14 08:02  cdogs-sdl-master\build\licenses\COPYING.SDL.txt
     文件         976  2019-07-14 08:02  cdogs-sdl-master\build\licenses\COPYING.SDL_image.txt
     文件         974  2019-07-14 08:02  cdogs-sdl-master\build\licenses\COPYING.SDL_mixer.txt
     文件       26530  2019-07-14 08:02  cdogs-sdl-master\build\licenses\COPYING.hqx.txt
     文件        1617  2019-07-14 08:02  cdogs-sdl-master\build\licenses\LICENSE.FLAC.txt
     文件        1060  2019-07-14 08:02  cdogs-sdl-master\build\licenses\LICENSE.enet.txt
     文件       25406  2019-07-14 08:02  cdogs-sdl-master\build\licenses\LICENSE.mikmod.txt
     文件         898  2019-07-14 08:02  cdogs-sdl-master\build\licenses\LICENSE.nanopb.txt
     文件        1593  2019-07-14 08:02  cdogs-sdl-master\build\licenses\LICENSE.ogg-vorbis.txt
............此处省略2738个文件信息

评论

共有 条评论