Skip to content

oblerion/love2d.cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

love2d.cs is Love2d in monogame, easy to use api

api

see api here

fast start

copy Love2d.cs in your monogame project
edit Game1.cs like this, remplace testing to your project's namespace

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using love2d;
namespace testing
{

    public class Game1 : Love2d
    {
        public Game1()
        {

        }
        public override void load()
        {
            // set width and height of window
            this.window_setmode(800,480);

        }
        public override void update(GameTime gameTime)
        {

        }
        public override void draw(GameTime gameTime)
        {

        }
    } 
 
}

all main function of monogame are in Love2d.cs,
you can use load, update and draw same at it

Releases

No releases published

Languages