Trying a Qix clone.
Posted: Mon Apr 11, 2011 8:47 am
I know I'm asking a lot, but I'm still learning
I was trying to make a small Qix clone, but I'm finding a lot of problems on even how to start.
Basically I want this cursor which movement is bound to the screen's edge and to the already closed lines.
When you press a button you can start to trace an orthogonal line. When you close a rectangle, the rectangle itself gets filled and you can freely move around its perimeter.
When you are tracing your lines, you are vulnerable to attacks not only in the cursor area, but even in the line you are tracing.
Now, I was trying to draw orthogonal lines with the love.graphics.line function, adding points to a table so to build a polyline.
But I've got all sort of problems to limit the direction of the cursor...
I feel lost, here. I need advice on how to proceed, pseudo code, anything pointing me in the right direction.
Can you help me?
I was trying to make a small Qix clone, but I'm finding a lot of problems on even how to start.
Basically I want this cursor which movement is bound to the screen's edge and to the already closed lines.
When you press a button you can start to trace an orthogonal line. When you close a rectangle, the rectangle itself gets filled and you can freely move around its perimeter.
When you are tracing your lines, you are vulnerable to attacks not only in the cursor area, but even in the line you are tracing.
Now, I was trying to draw orthogonal lines with the love.graphics.line function, adding points to a table so to build a polyline.
But I've got all sort of problems to limit the direction of the cursor...
I feel lost, here. I need advice on how to proceed, pseudo code, anything pointing me in the right direction.
Can you help me?