Results 1 to 1 of 1
  1. #1
    Razzo is offline Member
    Join Date
    Oct 2011
    Rep Power

    Angry In Game Minimap! GL11 Help!

    Ok, So I'm making this minimap for this game, It loads all the players on the map, just i want it so as your ingame Yaw increases/decreases it "Spins" I have the center coords of were it should rotate around, But I dont know how I can do any of it!

    Heres what I got so far

    Java Code:
                    	    GL11.glPushMatrix(); //start gl11
                    	    //GL11.glTranslatef(GuiScreen.width - 100, GuiScreen.height - 100, 0.0F); //translation makes other players dissappear? 
                    	    GL11.glRotatef(mc.thePlayer.rotationYaw, centX, centZ, 1.0f ); // rotates it weirdly?
                            drawRect(xcoord, ycoord, xcoord+2, ycoord+2, 0x99ff0000);
                            GL11.glPopMatrix(); // stop gl11
                            drawRect(centX + 1 , centZ + 1, centX - 1, centZ - 1, 0x9900ff00); // own player (at center)
    Also, the map should be 2d! not 3d (Like the game)
    Last edited by Razzo; 10-30-2011 at 01:13 PM.

Similar Threads

  1. Replies: 1
    Last Post: 06-02-2011, 09:29 AM
  2. Replies: 2
    Last Post: 08-05-2010, 04:49 AM
  3. game code for any game
    By deathnote202 in forum Java Gaming
    Replies: 4
    Last Post: 06-10-2010, 08:06 AM
  4. Help with game
    By TGH in forum New To Java
    Replies: 26
    Last Post: 01-12-2010, 03:55 PM
  5. 2D strategy game or 2D war game
    By led1433 in forum Java 2D
    Replies: 5
    Last Post: 02-10-2009, 07:00 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts