FLYINGJESTER'S PROFILE

I am the Jester.

I make games using JavaScript, C, C++, Mercury, Java, Assembly (amd64 and UltraSparc) and Python. I used to use Sphere a lot, but I'm more into C/C++ and Mercury nowadays. I still use JavaScript and embed it sometimes, and I usually use Python for build systems and system management.

I wrote TurboSphere, which is a recreation of the Sphere Game Engine with a number of major improvements. I'm not really working on it anymore.

I'm surely going to finish making a game someday. I mean, sooner or later, it's bound to happen. Right?
Athena
turn-based strategy game of war and city building

Search

Filter

McBacon Jam #2

Based on these mixed messages, I'm imagining Cooking Mama cross Superman 64. Which is an A+ in my book.

Managing the queue while Liberty is away. Expect shittier games than usual! (also click here for gems from denied games)


Don't like it? (ノ◕ヮ◕)ノ*:・゚✧*:・゚✧

Would make a good tagline.

Managing the queue while Liberty is away. Expect shittier games than usual! (also click here for gems from denied games)

What if you just put "Screw Flanders" over and over again at the end to get to 500 characters?

I need help understanding classes [RM2K3]

Do you want to store a number boxes with different string names, and then refer to them later by those names?

You probably want to use a std::map<std::string, struct Box> in that case. That would let you do this:


#include <map>

struct Box{
int height;
// ...
};

static std::map<std::string, struct Box> boxes;

void someSetterCallback(std::string name, int height){
boxes[name].height = height;
}

int someGetterCallback(std::string name){
return boxes[name].height;
}

Post a fun fact... about yourself!

I have severe mycophobia. Seeing tiny mushrooms in the woods or in grass is alright, but I really, really don't want to touch them. we get gigantic aminitas (foot tall, six inches in diameter) and king crown mushrooms (only six inches tall, but up to ten inches in diameter and easily two inches thick) in Alaska. They scare the crap out of me. I just don't like being near them.

But I also am afraid of plants that are too big, too. Like skunk cabbage. Anything with a leaf over a foot long scares me. But that's not even close to the fear I have of fungi.

+++ DynRPG - The RM2k3 Plugin SDK +++

It would be cleaner to change:

std::string formatText(std::string s)
to

std::string formatText(const std::string &s)

Actually, in this case you'd probably do best to just use C strings (const char *), you aren't really using any of the features of std::strings.

I need help understanding classes [RM2K3]

In C++, classes and structs are almost the same thing. The big difference is that a struct has public members by default, whereas with a class they are private by default.


struct Box {
// ...
};
Is basically the same as:

class Box{
public:
// ...
};

In a few rare cases, you would then need to add `struct' before that type name (I think this is only the case in certain uses of a struct type inside templates). So don't worry about that unless you are using templates.

A union is sort of a sum type. You can only use a single member of it at a time, they exist in the same memory location, whereas a struct or class has a series of members that are all unique. In general, you probably shouldn't be using unions very often at all. They can be useful, but they are tricky to use.

A possible example would be:


// A struct because it's just plain old data
struct Shape{
unsigned number_sides;
union{
double radius;
double side_length;
} dimensions;
};
//...

// A circle of radius 10 units
struct Shape circle = { 0 };
circle.dimensions.radius = 10.0;

// A square with side length 17 units
struct Shape square = { 4 };
square.dimensions.side_length = 17.0;

Note that the members side_length and radius don't need to be the same type. If they are the same type, then it wouldn't matter which one you read from, but if they aren't (for instance, one was an integer and one was a floating point), you'd get nonsense reading from one the one you didn't set.



union {
int A;
float B;
} data;

data.A = 10;
float C = data.B;
// C now contains nonsense (definitely NOT 10.0). data.A is still 10.

Managing the queue while Liberty is away. Expect shittier games than usual! (also click here for gems from denied games)

I kind of like it. It doesn't seem pretentious, and I already know what to expect from that one screenshot.

Puzzle thread

OTTFF
SSENT

One
Two
Three
Four
Five

Six
Seven
Eight
Nine
Ten

I remember something very similar to this from middle school. Although wow, I actually thing Sated's solutions is much more clever. Or at least it would be if the first character was U.

McBacon Jam #2

Heroes AND villains? You ask a lot :)