某处有实体课吗? [英] Is there an entity class somewhere?

查看:83
本文介绍了某处有实体课吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自己制作一个简单的基本游戏。



某处有实体类吗?

我自己开始制作一个实体课程,但它让我感到震惊,要求一个已经制作的实体课程。我在想,也许有一些默认的?,可以使用,我不必重新发明轮子。



在我的课堂上,我把下面的内容:



// [用户:F- ES Sitecore]今天刚刚帮助我参加这个活动 - 非常有用!



我尝试了什么:



I am trying to make a simple basic game by myself.

Is there an Entity Class somewhere?
I started to make an Entity Class by myself, but it strike me, to ask for one already made. I'm thinking, maybe there are some default ones?, that are usable, and i dont have to reinvent the wheel.

In my class for example, I put the folowing:

//[user:F-ES Sitecore] just helped me today with this event here - very useful !

What I have tried:

        public delegate void MoveFinishedHandler();
        public event MoveFinishedHandler Moving; 

        private Timer Timing = new Timer();
        void timer_Tick(object sender, EventArgs e)

public void Render(object sender, PaintEventArgs e)
public float x = 10, y = 10, width, height;
public void Location(float X, float Y)
        private void TextRenderer(object sender, PaintEventArgs e, float element)
        private enum TextMode { Down, Up }
        private void TextRenderer(object sender, PaintEventArgs e, float element, TextMode swichText)
        public float speed = 1;
        public bool showHealth;
        public float health = 100;

        public bool showResourceNumber;
        public float storage = 100;

        private float ResourceSpeed = 1;
        public float ResourceLoadSpeed

public void GoTo(float X, float Y)
public void Stop()
public void Load(Entity target)
public void UnLoad(Entity target)

推荐答案

以下是您可能感兴趣的C#游戏引擎列表:https://www.slant.co/topics/3948/~best-2d-c-game-引擎 [ ^ ]

微软有实体框架,但我不建议你写游戏。

祝你好运!
Here is a list of C# game engines that might be of interest to you: https://www.slant.co/topics/3948/~best-2d-c-game-engines[^]
Microsoft has the "Entity Framework", but I would not recommend that to write a game.
Good luck !


这篇关于某处有实体课吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆