Blog - Title

December, 2011

  • Fabulous Adventures In Coding

    What's the difference? Remainder vs Modulus

    • 38 Comments
    Today, another episode of my ongoing series " What's the difference? " Today, what's the difference between a remainder and a modulus, and which, if either, does the % operator represent in C#? A powerful idea that you see come up in mathematics...
  • Fabulous Adventures In Coding

    Shadowcasting in C#, Part One

    • 15 Comments
    I've always loved the "roguelike" games; perhaps you've played some of them. Those are the games where you get a top-down view of a tile-based world, and have as much real time as you like to make a choice of action. The canonical plot is to enter a dungeon...
  • Fabulous Adventures In Coding

    Shadowcasting in C#, Part Two

    • 15 Comments
    I hope the basic idea of the shadow casting algorithm is now clear. Let's start to implement the thing. There are two main concerns to deal with. The easy one is "what should the interface to the computation look like?" The second is "how to implement...
  • Fabulous Adventures In Coding

    Roguelike people

    • 41 Comments
    No technology today. Rather, some advice. I don't know if there's some sort of grifter convention going on, but I have seen four different short-con artists operating in Wallingford, the neighbourhood of Seattle where I live, in the last three days. Though...
  • Fabulous Adventures In Coding

    So many interfaces, part two

    • 11 Comments
    In my earlier article from April 2011 on interface implementation I noted that C# supports a seldom-used feature called "interface re-implementation". This feature is useful when you need it but unfortunately is one of those features that can bite you...
  • Fabulous Adventures In Coding

    Shadowcasting in C#, Part Three

    • 8 Comments
    Before we get started, thanks for all the great comments to the previous couple of posts. I'll be updating the algorithm to try to make even better-looking circles of light based on the comments. Like I said, there's a lot of subtleties to these algorithms...
  • Fabulous Adventures In Coding

    Shadowcasting in C#, Part Six

    • 6 Comments
    OK, let's finish up this year and this series. We have an algorithm that can compute what cells in the zero octant are in view to a viewer at the origin when given a function that determines whether a given cell is opaque or transparent. It marks the...
  • Fabulous Adventures In Coding

    Shadowcasting in C#, Part Four

    • 6 Comments
    Last time we saw how many different ways there were to get the calculation of the top cell based on the top vector wrong. Today we'll take a briefer look at determining the bottom cell. We know from our discussion of last time that the right way to determine...
  • Fabulous Adventures In Coding

    Shadowcasting in C#, Part Five

    • 3 Comments
    I hope you all had a pleasant Christmas and Boxing Day; we chose to not travel to see family this year and had a delightful time visiting friends. We'll finish up 2011 here with a bit more on shadowcasting, and then pick up with more C# language design...
Page 1 of 1 (9 items)