Author Topic: Ambitious Rogue-like Project. But...  (Read 33472 times)

JackBread

  • Newcomer
  • Posts: 3
  • Karma: +0/-0
  • 100% FRESH RATIONS
    • View Profile
    • Email
Ambitious Rogue-like Project. But...
« on: June 10, 2009, 07:25:58 AM »
...I'm a newbie to coding. I have this ambitious thought for a rogue-like. It will have similarities to Dwarf Fortress, but I'm not going that far. As I said, I am a newbie to coding besides some experience with Game Maker. I was using this tutorial, but it stopped right after rendering a room and hasn't been updated since 2007, though the author is still active and is planning to continue. I wanted to know if there is any tutorial to coding a rogue-like in C++ or Game Maker(which I doubt exists). I have tried a general C++ coding tutorial, but after a part about integers, it just started not making sense to me.

...After writing that... I seem pretty hopeless at coding C++.  :)

Thanks in advanced.

EDIT: I am also willing to switch programming languages if another is easier. Also, just for the reference, my Game Maker is registered.
« Last Edit: June 10, 2009, 07:43:38 AM by JackBread »

PaulBlay

  • Rogueliker
  • ***
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Re: Ambitious Rogue-like Project. But...
« Reply #1 on: June 10, 2009, 08:01:23 AM »
 There's a lot of stuff in RogueBasin, but it isn't very organized.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Ambitious Rogue-like Project. But...
« Reply #2 on: June 10, 2009, 11:33:20 AM »
I have tried a general C++ coding tutorial, but after a part about integers, it just started not making sense to me.

It takes some time to learn a real programming language. The important thing is just learn and not give up right away when something doesn't "make sense". Start with simple programs which use some single feature of the language and/or algorithm. Don't read tutorials (they usually suck), get a real book.

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: Ambitious Rogue-like Project. But...
« Reply #3 on: June 10, 2009, 01:14:09 PM »
Or start with a friendlier language, like Java if you're still trying to go for something somewhat heavy-weight. There's also Python, for example, which has a great looooong "tutorial" in book shape at www.diveintopython.org or something like that. It's a really high-level language, so it is supposedly easier, but much slower.
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

JackBread

  • Newcomer
  • Posts: 3
  • Karma: +0/-0
  • 100% FRESH RATIONS
    • View Profile
    • Email
Re: Ambitious Rogue-like Project. But...
« Reply #4 on: June 11, 2009, 12:39:15 AM »
I've looked through Rogue Basin, but I didn't find much help.

I have tried a general C++ coding tutorial, but after a part about integers, it just started not making sense to me.

It takes some time to learn a real programming language. The important thing is just learn and not give up right away when something doesn't "make sense". Start with simple programs which use some single feature of the language and/or algorithm. Don't read tutorials (they usually suck), get a real book.

I know the basics of C++ and understand that it takes quite a while to learn but... there is no but...
Also, I would try a book, but I don't have any money and there is no nearby bookstore I could walk to(my mom would have to take me places, but she doesn't usually).

Or start with a friendlier language, like Java if you're still trying to go for something somewhat heavy-weight. There's also Python, for example, which has a great looooong "tutorial" in book shape at www.diveintopython.org or something like that. It's a really high-level language, so it is supposedly easier, but much slower.
I'll check that out.

Vanguard

  • Rogueliker
  • ***
  • Posts: 1112
  • Karma: +0/-0
    • View Profile
Re: Ambitious Rogue-like Project. But...
« Reply #5 on: June 11, 2009, 01:03:58 AM »
Like Anvilfold said, java is a bit friendlier, and it has enough similarities with C++ that most of what you know should carry over.

It doesn't require you to manage a few things that C++ does, and while as far as I know it usually doesn't run as efficiently as C++ code, for roguelikes this is rarely a major issue.  As an added bonus, your code should run on just about any type of computer.

Edit:

I've also found a few free resources for learning java that you may be interested in.

Sun's tutorial is good for learning the basics, and can be found here:
http://java.sun.com/docs/books/tutorial/getStarted/index.html

The 3rd edition of Thinking in Java by Bruce Eckel is available as a free download here:
http://www.mindview.net/Books/TIJ/

I thought it was a pretty good resource, and it was generous of him to offer it as a download like that.
« Last Edit: June 11, 2009, 01:10:11 AM by Curseman »

PaulBlay

  • Rogueliker
  • ***
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Re: Ambitious Rogue-like Project. But...
« Reply #6 on: June 11, 2009, 07:50:37 AM »
I've looked through Rogue Basin, but I didn't find much help.

I would recommend looking at the pages in the Library category.  Libraries suited to roguelike development are a good way of getting the speed advantage of C/C++ while making it easier to produce useful programs. 

There's other good stuff in there somewhere, but it's hard to work out what and where.  :-\

corremn

  • Rogueliker
  • ***
  • Posts: 700
  • Karma: +0/-0
  • SewerJack Extraordinaire
    • View Profile
    • Demise RogueLike Games
Re: Ambitious Rogue-like Project. But...
« Reply #7 on: June 11, 2009, 10:07:48 AM »
If you have gamemaker experience, just make it in gamemaker. It is essentially a 2d grid based game.  You can use bitmaps or whatever for ascii/graphical tiles.  After all spelunky was written in game maker.  Learning to code in order to write a game will be hard, especially a  roguelike because roguelikes tend to have shifting goals and just get more and more complex.  Good luck.

P.S Roguelikes are not easy to make at all. They just appear that way.
corremn's Roguelikes. To admit defeat is to blaspheme against the Emperor.  Warhammer 40000 the Roguelike

PaulBlay

  • Rogueliker
  • ***
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Re: Ambitious Rogue-like Project. But...
« Reply #8 on: June 11, 2009, 10:12:16 AM »
After all spelunky was written in game maker. 

As was Triangle Wizard.

JackBread

  • Newcomer
  • Posts: 3
  • Karma: +0/-0
  • 100% FRESH RATIONS
    • View Profile
    • Email
Re: Ambitious Rogue-like Project. But...
« Reply #9 on: June 12, 2009, 12:25:30 AM »
I will use GameMaker, then.

Thanks for all your help, everyone.

Anvilfolk

  • Rogueliker
  • ***
  • Posts: 374
  • Karma: +0/-0
    • View Profile
Re: Ambitious Rogue-like Project. But...
« Reply #10 on: June 12, 2009, 11:52:55 AM »
Awww, but I can't help you then ;) Heheheh!

Best of luck :) Start off small, you'll probably end up doing a few rewrites, but that's normal. You'll have a better idea of what you need when you do them :)
"Get it hot! Hit it harder!!!"
 - The tutor warcry

One of They Who Are Too Busy

Slash

  • Creator of Roguetemple
  • Administrator
  • Rogueliker
  • *****
  • Posts: 1203
  • Karma: +4/-1
    • View Profile
    • Slashie.net
    • Email
Re: Ambitious Rogue-like Project. But...
« Reply #11 on: June 12, 2009, 09:00:16 PM »
This scenario is older than you know. I prefer counting from the emergence of one integral anomaly to the emergence of the next, in which case this is the three hundredth version.

Be ready to scrap your first roguelike projects in favor of gaining the needed skills. Don't embark into your ultimate roguelike project until you are ready, else you will be trapped into an infinite refactoring cycle (or you may eventually achieve it, but after lots of unneeded pain). Reuse the useful parts of your code, but never get into creating a generic roguelike engine. Start simple, release often. Favor working releases over polished code accumulating dust in your hard drive.

Nahjor

  • Newcomer
  • Posts: 33
  • Karma: +0/-0
    • View Profile
    • Email
Re: Ambitious Rogue-like Project. But...
« Reply #12 on: June 13, 2009, 01:22:10 AM »
Be ready to scrap your first roguelike projects in favor of gaining the needed skills. Don't embark into your ultimate roguelike project until you are ready, else you will be trapped into an infinite refactoring cycle (or you may eventually achieve it, but after lots of unneeded pain). Reuse the useful parts of your code, but never get into creating a generic roguelike engine. Start simple, release often. Favor working releases over polished code accumulating dust in your hard drive.
QFT, massively. This is exactly the process that finally led me to releasing something playable.

ido

  • Rogueliker
  • ***
  • Posts: 618
  • Karma: +0/-0
    • View Profile
    • Tame Tick
Re: Ambitious Rogue-like Project. But...
« Reply #13 on: June 15, 2009, 10:51:31 AM »
I will use GameMaker, then.

I'm not sure that's the best solution actually.

If your goal is to produce a working game as quickly as possible, then yes - use what you already know.

But learning a "real" programming language is probably quite  a bit more important to you than creating a game quickly, and starting a project and spending a long time programming it is a good way to learn a language (even if you are likely never to finish n your first attempt).

I also still used code I wrote for my earlier failed roguelike in 2006 in newer, smaller(!) projects released this year and last year.

My next game will be bigger in scale and probably use code & concepts from all 3 (in addition to a lot of new stuff of course).
« Last Edit: June 15, 2009, 03:56:57 PM by ido »

Vanguard

  • Rogueliker
  • ***
  • Posts: 1112
  • Karma: +0/-0
    • View Profile
Re: Ambitious Rogue-like Project. But...
« Reply #14 on: June 17, 2009, 11:00:27 PM »
Good luck in your project JackBread!

I'm not sure that's the best solution actually.

Don't sell gamemaker short.  I have no experience using it myself, but I know it's capable of producing good stuff, because I've seen games like like Spelunky http://forums.tigsource.com/index.php?topic=4017.0 and Iji http://www.remar.se/daniel/iji.php.

With that said, I do recognize that it still will inevitably not have as many capabilities as a real programming language does.