Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts

    The right way to get started

    Let me first start off by introducing myself. Hello, I go by the name of Vicious, 16 years of age and reside in Oklahoma City, Oklahoma.

    *Additional Info*
    I attend a school (South-east High School of Technology) that doesn't teach any sort of coding and I have to rely on the Internet and a programming PHP book to learn any sort of codes.(Written by Rasmus Lerdorf, Kevin Tatroe & Peter MacIntyre).

    (Also, Yeah a Technology school that doesn't teach coding? What the hell..)

    Alright, what I'm looking to accomplish is to create a text based game. Such as "http://www.theninja-rpg.com" for example. I have my idea of what I want to do but I have no idea what I'm doing. What direction should I start in first? Do I create the page's template or do I create the log in and register functions? What about the battle system? When do I place that? What codes to I use? What's the best place to learn them?

    So basically, I want to know the fundamentals of creating a text based game.

    Hope I given you enough information to work with. If not reply with your questions and I will answer the best I can. Thank you for your time.

  2. #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 932 Times in 919 Posts
    I'd start by planning out how the game is supposed to work. break it up into separate processes and then break them down further until you get to the point where you fully understand what each individual process needs to do. You can then code each separately.
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  3. Users who have thanked felgall for this post:

    Vicious (06-22-2012)

  4. #3
    New to the CF scene
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts
    Hi guys, I'm new to programming and studying Software Development Fundamentals. Do any of you know anything about C#?

    The assessment says to write the following code snippet:
    int n = 20;
    int d = n++ + 5;
    What will be the value of d after this code snippet is executed?
    a) 25
    b) 26
    c) 27
    d) 28

    How do i work this out?

  5. #4
    Supreme Master coder!
    Join Date
    Jun 2003
    Cottage Grove, Minnesota
    Thanked 1,170 Times in 1,161 Posts

    ++ means to add one to itself (or increment it) ... so n would be 21

    then add 5.

    Now the part I'm not sure about is the order of operations.
    I think the increment happens first and the add happens 2nd.



Posting Permissions

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