Repos

MELHARFI-2D-Game-Engine.

Got to repo.

07. Txt (Text)

Txt class

This class draw a text on screen.

There's 3 overload of the constructors

  • An empty one if you want to initialize later
  •                         
    Txt label1 = new Txt(manager);
    manager.ObjectLayer.Add(box1);
                            
                          

  • Second overload
  •                         
    Txt label1 = new Txt(text, p, manager);
    manager.ObjectLayer.Add(box1);
                            
                          

    text is the text to draw

    p is the position of the text on screen.

  • 3rd overload with font parameter and the complete one
  •                         
    Manager manager = new Manager(this, "CORE_ENGINE");
    manager.Background = Color.Blue;
                  
    Txt label1 = new Txt("Hello World", new Point(10, 20), "helloWorldStr", Manager.TypeGfx.Object, true, new Font("Verdana", 39, FontStyle.Bold), Brushes.Chocolate, manager);
    manager.ObjectLayer.Add(label1);
                            
                          

    Services

    App Developpement

    Want me to dev an app for you ? dont hesitate to contact me.

    Programming

    Are you looking for a coder/teammate for your project ? Let's give it a try.

    Job Invitation

    Have a proposal for me ? we can discuss about it.

    Donation maybe ?!

    You want to buy me a coffe ? m.elharfi@gmail.com