Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • King Bosnia: Any recommendations to private servers?
      October 18, 2018, 04:47:35 PM
    • FightMexoxo: oi i have the files if anyone whats em
      October 18, 2018, 12:44:42 AM
    • The Wanderer: Whoops
      October 15, 2018, 12:56:18 AM
    • The Wanderer: Making own operating system
      October 15, 2018, 12:56:11 AM
    • Travas: no
      October 07, 2018, 04:03:36 PM
    • Saltyspade10: Server still up and running?
      October 05, 2018, 07:13:41 PM
    • Wesam: Can someone upload moparscape.jar?
      October 05, 2018, 11:43:43 AM
    • Ligoe: yo
      September 30, 2018, 12:48:15 PM
    • Ligoe: how come i can't login the game
      September 30, 2018, 12:48:03 PM
    • fuzzout: Anybody here with experience in using Luna source? I'm looking to develop something, but can't seem to get any of my clients to work with it...
      September 26, 2018, 10:47:27 AM
    • `Discardedx2`: ?
      September 21, 2018, 12:24:09 PM
    • Pookey71: ARE YOU HERE TO RECEIVE MY LIMP PENIS!?
      September 20, 2018, 11:55:24 PM
    • Pookey71: THIS IS DEMOCRACY MANIFESTO
      September 20, 2018, 11:55:07 PM
    • Vasi28: Гранд
      September 03, 2018, 07:06:22 PM
    • Rash: test
      August 30, 2018, 09:09:18 PM
    • Guruu:[link]
      August 30, 2018, 12:04:45 AM
    • Guruu: am i allowed to post links shoutbox?
      August 30, 2018, 12:03:46 AM
    • drubrkletern:[link] feedback wanted
      August 28, 2018, 03:55:17 PM
    • bugz000: Anyone got a link for the old ass silab client and cache.zip? from mopar 3.2 era :) 317
      August 25, 2018, 12:48:15 AM
    • cholland2015: Does anyone know where I can download the old moparscape client/server?
      August 24, 2018, 02:30:51 PM

    Author Topic: First Program  (Read 2556 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineBowser jr

    • Member
    • ****
    • Posts: 6,001
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #20 on: November 26, 2014, 07:51:17 PM »
    Cool! Thanks for the input

    Also, where could I find free assets like sprites and sounds for say a 2D game if possible?
    https://opengameart.org/
    https://www.makeschool.com/gamernews/277/20-best-free-art-resources-for-game-developers?source=mgwu
    The best would be to learn how to make simple art yourself, as you can be a bit limited if you're stuck to whatever free game assets you find. You need the art style in the assets to be consistent if you want your game to look good.
    Runescape Gambling

    OfflineAshi

    • Member
    • ****
    • Posts: 3,584
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #21 on: November 26, 2014, 08:52:35 PM »
    I've heard some great things about Swift for IOS.
    + android games are not bound to Java, I know a rather big game which uses marmalade (c++)
    Which is why I said generally. And yes


    what language is better suited for making games?? i want to one day make games in android and for the iphone
    C# and Unity might be a good choice. C# is an easy and simple language and Unity seems to be a good library for games.
    Scala is a good alternative to Java, it is better than Java in many ways and runs on devices that runs Java programs. Slick2D and lwjgl (3D) are two libraries for Java/Scala that will be helpful for making games (As the built in ones are shit).

    C/C++ is not a good language for a beginner, and I would advice you to start learning some other language if you have no/little experience in programming.
    C# would limit your compatibility range with devices.

    Java is better for production (imo) than Scala and Java 8 is pretty boss :)
    Unity runs on Android, Blackberry, IOS, Windows, Max OS X and Linux. That isn't limiting.

    EDIT: It also have the benefit of running in the web browser (With plugin), which will make whatever you make more available.
    Never knew that!
    Runescape Gambling

    Offlinewildskiller

    • Member
    • ****
    • Posts: 1,435
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #22 on: November 26, 2014, 08:54:36 PM »
    My first program was a console program that you could just gamble with. I don't have the code, but I remember using java.util.Random for the first time in that program.
    Runescape Gambling

    OfflineLimits

    • Member
    • ****
    • Posts: 2,190
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #23 on: November 26, 2014, 08:55:39 PM »
    My first program was a console program that you could just gamble with. I don't have the code, but I remember using java.util.Random for the first time in that program.
    It wasn't a hello world program? You just hopped straight into gambling?

    OfflineISUB

    • Member
    • **
    • Posts: 22
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #24 on: November 26, 2014, 08:59:05 PM »
    Knowing Java, Python, and C would take you through most of the languages (or programming concepts needed) for a CS degree. The other half of the degree is discrete mathematics and theoretical computer science topics (DFAs and such).

    Thanks for staying on topic and not posting about game development, although you were all very kind to answer that guys question... with more replies then this general post was made towards.

    My first program was a console program that you could just gamble with. I don't have the code, but I remember using java.util.Random for the first time in that program.

    I've not went into Java, but that sounds like a great idea. Nice job, man.
    Another junior! Yay!

     :D

    Edit: Decided to look into the math courses for CS, An Exact Algorithm for the Generalized List T
    -Coloring Problem, is what I first found. I've taken a look and the beginning of the book has:
    http://i61.tinypic.com/xlihhc.png ---- I've never even seen some of these signs before..
    « Last Edit: November 26, 2014, 09:10:22 PM by ISUB »

    OfflineAshi

    • Member
    • ****
    • Posts: 3,584
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #25 on: November 26, 2014, 09:50:17 PM »
    Edit: Decided to look into the math courses for CS, An Exact Algorithm for the Generalized List T
    -Coloring Problem, is what I first found. I've taken a look and the beginning of the book has:
    http://i61.tinypic.com/xlihhc.png ---- I've never even seen some of these signs before..
    Yeah I never knew what those symbols meant when I first started CS, they teach you it all though in the first year.

    Offlinet4

    • Member
    • ****
    • *
    • *
    • *
    • Posts: 6,798
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #26 on: November 27, 2014, 12:19:50 AM »
    My first program was a console program that you could just gamble with. I don't have the code, but I remember using java.util.Random for the first time in that program.
    It wasn't a hello world program? You just hopped straight into gambling?
    my first program was a guessing game

    OfflineYz85Racer

    • i > u
    • Member
    • ****
    • *
    • *
    • Posts: 7,735
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #27 on: November 27, 2014, 02:04:50 AM »
    Mine was a SCAR Auto msn nudger.

    Offlinewildskiller

    • Member
    • ****
    • Posts: 1,435
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #28 on: November 27, 2014, 05:23:56 PM »
    My first program was a console program that you could just gamble with. I don't have the code, but I remember using java.util.Random for the first time in that program.
    It wasn't a hello world program? You just hopped straight into gambling?
    I never started from the documentations for Java. I just used random things from google to learn what I needed, and after a year I could actually understand the documentations.

    OfflineISUB

    • Member
    • **
    • Posts: 22
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #29 on: November 28, 2014, 05:19:06 PM »
    Learning the basics of C, since t4 suggested it.
    Transferred this program into C:
    Code: C
    1.     #include <stdio.h>
    2.     #include <math.h>
    3.     #define PI 3.142
    4.  
    5.     void main(){
    6.         int rarea;
    7.         printf("Enter the height of a rectangle \n");
    8.         scanf("%d",&height);
    9.         printf("Enter the width of the rectangle \n");
    10.         scanf("%d",&width);
    11.         rarea = height * width;
    12.         printf("Area of the rectangle = %5.2f\n", rarea);
    13.  
    14.         float radius, area;
    15.         printf("Enter the radius of a circle \n");
    16.         scanf("%f",&radius);
    17.         area = PI *pow(radius,2);
    18.         printf("Area of a circle = %5.2f\n", area);
    19.     }
    20.  

    The only issue is, before I inserted the rectangle into the problem. It would calculate the circle area. Once I tried putting the rectangle into the equation I get errors. I've tried a few things, (changing area to 'rarea' for rectangle area), just in case two variables called area was the case. Then I found online a post with %d for ints and %f for doubles, so I changed that, but didn't work.

    Anyways, If I could get a little help on this that would be nice. The main reason for the response was to show my efforts in learning each language.

    OfflineBowser jr

    • Member
    • ****
    • Posts: 6,001
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #30 on: November 28, 2014, 05:51:17 PM »
    ISUB: While t4s list of languages you should know is fairly accurate, I would recommend that focus more on OOP-programming and use a easier languages than C/C++ (Like Java). It is much easier to learn important programming concepts without being distracted by a more difficult language. Once you have done that, learning C++ would be more about learning the language than learning how to program.

    OfflineISUB

    • Member
    • **
    • Posts: 22
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #31 on: November 28, 2014, 06:16:44 PM »
    ISUB: While t4s list of languages you should know is fairly accurate, I would recommend that focus more on OOP-programming and use a easier languages than C/C++ (Like Java). It is much easier to learn important programming concepts without being distracted by a more difficult language. Once you have done that, learning C++ would be more about learning the language than learning how to program.

    Thanks for the suggestion, I wasn't sure on which route to start at so you've given me a start-destination point. I'll start with java, see where I go from there.
     :D

    OfflineBowser jr

    • Member
    • ****
    • Posts: 6,001
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #32 on: November 28, 2014, 06:34:26 PM »
    Do Java exercises, and do exercises that forces you too look up something new. Javadoc is quite helpful, mark something in the IDE with F1 and you get more information about a certain class or function. While we can help you, you should also learn to help yourself.

    If you're not already doing it use a proper IDE, you are not doing yourself a favor by writing stuff in Notepad.

    OfflineISUB

    • Member
    • **
    • Posts: 22
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #33 on: November 28, 2014, 07:11:26 PM »
    If you're not already doing it use a proper IDE, you are not doing yourself a favor by writing stuff in Notepad.

    I've downloaded Eclipse for Java, Codeblocks for C, and been using the Python IDLE/Sublime for Python, but that wasn't all too serious just experimentation.

    Offlinet4

    • Member
    • ****
    • *
    • *
    • *
    • Posts: 6,798
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #34 on: November 28, 2014, 07:16:17 PM »
    Try using Clion for C/C++, it's the best IDE for such hands down and it's free 'cause it's pre-alpha.

    OfflineAshi

    • Member
    • ****
    • Posts: 3,584
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #35 on: November 28, 2014, 07:39:27 PM »
    Use eclipse for c/c++ :)

    Offlineimthenull

    • Member
    • ****
    • Posts: 2,511
    • Thanks: +1/-0
      • View Profile
    Re: First Program
    « Reply #36 on: November 28, 2014, 08:30:04 PM »
    Try using Clion for C/C++, it's the best IDE for such hands down and it's free 'cause it's pre-alpha.
    yusssssssssssssssssss it's so great

    Use eclipse for c/c++ :)
    shut up.

    OfflineAshi

    • Member
    • ****
    • Posts: 3,584
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #37 on: November 28, 2014, 08:38:26 PM »
    Try using Clion for C/C++, it's the best IDE for such hands down and it's free 'cause it's pre-alpha.
    yusssssssssssssssssss it's so great

    Use eclipse for c/c++ :)
    shut up.
    Noo you shutup! Visual C++ is good too!

    Offlinet4

    • Member
    • ****
    • *
    • *
    • *
    • Posts: 6,798
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #38 on: November 28, 2014, 09:15:50 PM »
    Use eclipse for c/c++ :)
    ...

    Try using Clion for C/C++, it's the best IDE for such hands down and it's free 'cause it's pre-alpha.
    yusssssssssssssssssss it's so great

    Use eclipse for c/c++ :)
    shut up.
    Noo you shutup! Visual C++ is good too!
    :/


    OfflineISUB

    • Member
    • **
    • Posts: 22
    • Thanks: +0/-0
      • View Profile
    Re: First Program
    « Reply #39 on: November 28, 2014, 09:23:09 PM »
    Try using Clion for C/C++, it's the best IDE for such hands down and it's free 'cause it's pre-alpha.

    Thanks I'll keep it in mind when starting on C again, currently trying OOP languages like Java.

    Use eclipse for c/c++ :)

    I'm new, you obviously know what's looked down on in this category, please use maturity because I take everything you guys say seriously when asking questions.

    If I'm in the Off topic section talking about Kim Kardashian nudes or something then yeah, throw your sarcasm out there. Otherwise, I'd appreciate advice.

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal