Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Need to Draw 3x3 line for tic tac toe, i started implementation but i stuck here

package com.me.mygdxgame;

import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;


public class Main {
public static void main(String[] args) {
    LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();

    int i=7;
    ShapeRenderer shapeRenderer = new ShapeRenderer(i);
    cfg.title = "myTicTacky";
    cfg.useGL20 = false;
    cfg.width = 750;
    cfg.height = 500;
    shapeRenderer.line(12, 12, 12, 12);
    new LwjglApplication(new MyGdxGame(), cfg);

}

i have no idea, how to draw lines for this, help would be appreciated.

share|improve this question
2  
If you can't get lines to draw, you should read a libgdx tutorial. You're likely to run into similar problems again soon. – Anko Dec 25 '12 at 17:57

closed as too localized by Trevor Powell, bummzack, Josh Petrie, Nick Wiggill, michael.bartnett Jan 9 at 7:29

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

You need to be doing your drawing (and the rest of your programming) in the mygdxgame project (MyGdxGame.java), not mygdxgame-desktop or mygdxgame-android.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.