Tank side scroll

This is a discussion on Tank side scroll within the Game Programming forums, part of the General Programming Boards category; Iīm not writing a tank game where the player inputs the angle and velocity of the shot to hit the ...

  1. #1
    Registered User
    Join Date
    Jan 2011
    Location
    Slovakia
    Posts
    21

    Tank side scroll

    Iīm not writing a tank game where the player inputs the angle and velocity of the shot to hit the opponents tank. I have sorted out all the collision detections but I still have a problem side scrolling to track the ball and update the position of the tanks and the ground. The game map is currently 1850 pixels wide and the screen 800 pixels.

    Also I canīt find out how to input text into the screen for the player input.

    Can anyone please help as these are the last two obstacles I have to finish the game?

    If I can post zip files I will post the game on the forum as well.

    Thanks again

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    Draw some things on paper, and use some algebra and trigonometry to work out the maths.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,438
    Also I canīt find out how to input text into the screen for the player input
    That depends on your API, what are you writing it in?
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

  4. #4
    Registered User
    Join Date
    Jan 2011
    Location
    Slovakia
    Posts
    21
    Quote:
    Also I canīt find out how to input text into the screen for the player input

    That depends on your API, what are you writing it in?

    I'm looking for the simplest kind of textbox. Nothing fancy yet as I have only been programming for 4 months and windows for 1 month.

    I'm writing everything in Codeblocks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Fluid Mechanics program help
    By Hajjo in forum C Programming
    Replies: 15
    Last Post: 03-10-2008, 02:09 PM
  2. OpenGL example cube is black, white, grey only
    By edwardtisdale in forum Windows Programming
    Replies: 7
    Last Post: 09-22-2007, 02:37 PM
  3. Scroll Bars Are Scrolling Me Crazy
    By Iyouboushi in forum C# Programming
    Replies: 6
    Last Post: 03-03-2006, 12:43 PM
  4. Scroll Bars and Focus
    By Thantos in forum Windows Programming
    Replies: 1
    Last Post: 08-21-2003, 11:57 AM
  5. Horizontal Scroll Bars with CListBox
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2003, 09:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21