Hey guys,
I'm fairly new to Love2D, and really having a good time so far. I'm mainly using it, thus far as a tool to learn AI techniques in games. Right now as an exercise, i'm translating a simple matrix library, and using it to give me proper coordinates to draw a triangle on screen. The triangle is supposed to represent a bot, that right now, simply seeks the position of the mouse.
However my triangle doesn't draw correctly. At times, mainly when the cursor is near the top or bottom of the screen, that triangle gets drawn and I can't exactly see it. I double and triple checked my matrix library, I think it's correct. I just don't know if I'm using love.graphics.triangle correctly.
My goal, is for the triangle to be rendered, so that it turns and faces the mouse position at all times. I just started learning Lua and Love2D, so I'm sure there's a mistake in one of those, that I'm missing.
Can someone take a look, and help me out?
love.graphics.triangle
love.graphics.triangle
- Attachments
-
- AITest.love
- (17.73 KiB) Downloaded 164 times
Who is online
Users browsing this forum: No registered users and 1 guest