Official Codex Discord Server

  1. Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.
    Dismiss Notice

Banana Rogue

Discussion in 'Codex Workshop' started by Krice, Mar 17, 2019 at 4:20 PM.

  1. Krice Novice

    Krice
    Joined:
    May 29, 2010
    Messages:
    16
    I found an old source code for Advanced Rogue from 1985 and began to rewrite it for a modern compiler. Most work comes from changing old C function "list" parameter style to "new" style with parameters inside parentheses, but there are some surprising finds also. One of them is 'when' keyword used in some switch - cases as some kind of optional case-keyword. It could be some kind of old keyword even internet doesn't remember, because I didn't find any information about it. As if it never was a C keyword. Maybe the source code itself is from a parallel universe and it just slipped here for some reason? The name Banana Rogue is a project name, because you have to give the derived project some other name than 'Advanced'.
     
    • Informative Informative x 2
    • cool story bro cool story bro x 1
    • Interesting Interesting x 1
    ^ Top  
  2. Krice Novice

    Krice
    Joined:
    May 29, 2010
    Messages:
    16
    That 'when' was just a macro that combined break;case so there is no need to write break. I think those macros are going to be removed, at least that one. This kind of project is almost fun compared to working with a project that requires content. For example I've been mostly fine tuning the source code structure in my roguelike project Teemu, because it's pesky to add/fix missing content.
     
    • When words are not enough When words are not enough x 1
    ^ Top  

(buying stuff via the above buttons helps us pay the hosting bills, thanks!)