Click here to Skip to main content
15,888,590 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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)
Posted
Updated 15-Nov-18 9:34am
v3
Comments
W Balboos, GHB 15-Nov-18 14:40pm    
Do you have google on the internet where you live? If you do, did you try it to find entity classes? A long list of v's as to what you've done so far is not going to encourage anything in the way of a response.
_Q12_ 15-Nov-18 15:18pm    
:) i did searched on mister google. I didnt find anything, or i dont know how to search properly. Shh, my long string of v's is beautiful.
[no name] 15-Nov-18 15:34pm    
No there is no Entity Class, there are millions and more of them
_Q12_ 16-Nov-18 1:06am    
can you put a link to 1 such class here, please?

1 solution

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 !
 
Share this answer
 
Comments
_Q12_ 15-Nov-18 23:59pm    
Interesting answer. 5stars from me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900