Thread: Text game arrow keys

  1. #1
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688

    Text game arrow keys

    On my 50000 line text game i am still writing in C++ I am stumped on how to implement the arrow keys in my program.
    I think it may have somthing to with a class or maybe a windows function, am I correct here:

    Code:
     // user presses up arrow key
    UPArrowkkey()
    return response x;
    Please help!

  2. #2

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I'm developing a rather complicated Java system, and it's not even 20000 lines long yet. What on earth are you doing in all of these lines?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    XD, my text-based RPG isn't even 300 lines but I just started it yesterday.

  5. #5
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    He probably "hard-coded every single rat."
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  6. #6
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    Ha Ha very funny you lot! LOL! The reason it so big is becuase I am making it a version playable with 4 different characters, each with there owm seperate story line.

    When I have finshed and debugged it I will post it on the GameBaord then you can have a go if you wish. I am currently developing the 'BOSS' class as I write this. Pretty complicated.

    I want to move away from Console programming after this and try my hand at OpenGl or Direct X so I can add graphics and create more visual games

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    So? And if there were 100 characters, it shouldn't make on iota of difference to 2 (or actually even 1) character. Data, it's all about the data.
    Meaning that the program should load data files, not have all the data in the program code.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL - 2d text in 3d game
    By mikeb1986 in forum C++ Programming
    Replies: 1
    Last Post: 03-22-2006, 01:24 PM
  2. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  3. My Memory Game
    By jazy921 in forum C Programming
    Replies: 0
    Last Post: 05-05-2003, 05:13 PM
  4. Arrow keys!
    By Paninaro in forum C Programming
    Replies: 8
    Last Post: 06-26-2002, 07:39 PM
  5. msdos arrow keys?
    By seditee in forum Game Programming
    Replies: 3
    Last Post: 05-07-2002, 11:29 PM