Thread: Exact Location on the Screen

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Question Exact Location on the Screen

    I'm sure this is probably a fairly easy question but.. You know in most over head video games, they don't skip every square the size of the character, they move a percentage of the square in either direction.. well i tried using decimals, it didn't seem to work. Any ideas?

  2. #2
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    OH..

    Oh and by that I mean the x,y coordinates in the gotoxy function.

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    there is a difference between developing something in console mode and developing a graphical game. This isn't that hard of a concept in a graphical game; but you can only move things by one character in console mode.
    Away.

  4. #4
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    As blackrat said, you cant do it in console mode, only with a graphics library.

    How many commercial games do u see lately in console mode?

    So have a go at learning how to use one of the libraries.
    My personal favourite is Allegro

    Very simple and easy to pick up for beginners
    IDE: Dev C++ 5
    Lib: Allegro
    OS: Windows 2000

  5. #5
    Shadow12345
    Guest
    If you want to learn a graphics library you might as well learn opengl, it isn't really that bad, honestly. What IS bad is all the Window creation code that is required from the OS. I just use someone elses window creation code and just concentrate on the graphics library itself.

  6. #6
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Would "Windows API" qualify as a "graphics library"? Runs slow but isn't too hard to use.

    **EDIT**
    make that VERY VERY slow
    Last edited by Hunter2; 09-09-2002 at 10:20 AM.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  7. #7
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    ... compared to DDraw

  8. #8
    Registered User
    Join Date
    Sep 2002
    Posts
    23
    ok, has anyone actually used more than one API and can tell his favourite?
    let us eat and drink

  9. #9
    Registered User
    Join Date
    Sep 2002
    Posts
    9
    Would "Windows API" qualify as a "graphics library"? Runs slow but isn't too hard to use.
    Would that be slower than BGI?

  10. #10
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    BGI = "Borland Graphics Interface", right? Never tried it (actually, never tried anything other than Windows API, but that doesn't matter). But heck, the word "borland" stuck in there makes it sound slow and cumbersome already
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How does this user get screen to run under root?
    By Overworked_PhD in forum Tech Board
    Replies: 2
    Last Post: 06-28-2009, 09:31 AM
  2. Linux Problem Screen Resoultion
    By Matus in forum Tech Board
    Replies: 1
    Last Post: 01-29-2009, 04:39 PM
  3. [C] GDI: how to erase material drawn at an entire screen DC
    By pc2-brazil in forum Windows Programming
    Replies: 3
    Last Post: 01-24-2009, 07:24 PM
  4. Largest screen buffer size?
    By Ash1981 in forum C Programming
    Replies: 2
    Last Post: 01-30-2006, 04:31 AM
  5. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM