Coder Social home page Coder Social logo

gmh5225 / u3d_minidnf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from v-star0719/u3d_minidnf

0.0 0.0 0.0 220.01 MB

A mini game of DNF

Shell 0.15% C++ 1.68% Perl 0.06% C 57.06% Objective-C 0.52% C# 30.22% Assembly 1.99% Ada 1.29% Awk 0.46% CLIPS 0.10% Pascal 0.88% SAS 0.03% Makefile 0.61% HTML 0.43% CMake 0.25% Batchfile 0.05% DIGITAL Command Language 0.51% Module Management System 0.05% HLSL 0.06% Roff 3.60%

u3d_minidnf's Introduction

MiniDNF

这是一个《地下城与勇士》的小游戏,所有资源都是从游戏客户端解压出来的,仅供学习参考。
(1)有三个战斗关卡,还有一个新手教程关卡。
(2)只做了鬼剑士的基本技能,以及狂战士的部分技能。
(3)做了一个2D动画组件,动画的texutre没有打包成atlas,感觉pc上并不是很必要。2D动画组件可以用其他动画组件代替,这里仅仅是自己兴趣爱好。
(4)设计错误一,技能效果取了继承的方式来实现,应该采取组合的方式。即击飞、吸引、等效果应该是组合起来,通过配置选择是否要,而不是全都放进配置里开关。另外技能编辑器也能重要,通过Excel配表的方式太麻烦了。策划要进行规划的属性伤害数据放进Excel表,而表现上的配置在编辑器里修改就行,这样也可以在运行时效果。
(5)设计错误二,内部计算和表现的坐标不是一个。其实用一个就可以了,只要将相机按斜45度照射。我在内部计算采用了实际世界坐标,然后将世界坐标转换位2d的表现坐标,2d动画按这个表现坐标进行显示。这就导致调试看不到游戏对象的实际位置,因为scene里面看到的游戏对象的位置是转换过来之后的位置。为此我又增加了一个镜像系统来显示实际位置。当时觉得很有意思就做了出来,但是实际操作起来很不方便,只有玩玩的价值了。

screenshot

下载release文件夹里的'package.7z',解压出来就是游戏可执行文件。

u3d_minidnf's People

Contributors

v-star0719 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.