Spiderboydk
u/Spiderboydk
I have encountered a really strange rendering issue.
Consider the following document:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Test</title>
<style media="all" type="text/css">
li{
display:inline;
}
li+li:before
{
content:"#";
display:inline-block;
width:10pt;
}
</style>
</head>
<body>
<ul><li>1</l
I've written this tiny function to load the contents of a file into memory, but it seems slightly iffy to me - especially the type-punning.
auto load_entire_file(const char* filename) {
std::ifstream file(filename, std::ifstream::binary | std::ifstream::ate);
// Get file size
std::streamoff size = file.tellg();
if (size < 0) throw std::logic_error("Negative file length.");
size_t usize = static_cast<size_t>(size);
file.seekg(0, std::ifstream::beg);
// Read file contents
std::unique_ptr<int8_t[]> memory = std::make_unique<int8_t[]>(usize);
file.read(reinterpret_cast<char*>(memory.get()), size);
I've always thought these were synonyms, but apparently they are not.
Parameters are the "variables" in the function declaration, while arguments are the values transferred via the parameters to the function when called. For example:
void f(int x) { ... }
f(3);
x is a parameter, and 3 is an argument.
Hi r/rpg. I'm GM'ing a a 4-player game set in the Fallout universe. I think my world building so far is quite bland and forgettable, so I would really appreciate some fresh ideas from you to spark my imagination.
We're going for the feel of the older Fallout games, so our chosen style of play is gritty setting, low-powered PCs, scarcity of supplies, equal focus on combat stuff and non-combat/social stuff, morally gray dilemmas, etc.
What we have established so far:
Session 0: The group decided to be the only four surviving inhabitants of a vault, which had a bad reactor malfunction and nuclear meltdown. One player decided to be a ghoul (he is a technician, who failed to prevent the meltd
Sethbling, who makes Youtube gaming videos for a living, has recently made multiple Super Mario levels in the recently released Super Mario Maker.
He made a Youtube video showcasing the level. The first part shows the level, and the second part (from about 2:41) he explain his design decisions, like how the level teaches the player and how to set player expectations.
https://www.youtube.com/watch?v=TcA945xgQVU
Here is the archived Twitch stream, where he livestreamed designing the level, so you can see his thought processes and iterations.
http://www.twitch.tv/sethbling/v/16380872
He has made other livestreams and Youtube videos about other levels in a similar fashion.
Hi everybody. I have trouble with the destruction order of composite objects. Look at this example:
#include <iostream>
using namespace std;
class Inner {
public:
Inner() {cout << "Inner" << endl; };
~Inner() {cout << "~Inner" << endl; };
};
class Outer {
public:
Inner inner;
Outer() {cout << "Outer" << endl; };
~Outer() {cout << "~Outer" << endl; };
};
int main() {
Outer outer;
return 0;
}
The composite object will destroy before the object it's composed of, i.e. it will produce:
Inner
Outer
~Outer
~Inner
I want Inn
Hi. I'm quite new to this subreddit (and reddit in general). I am very interested video game design - in particular innovating new designs and rethinking existing designs.
Right now I am interested in starting a discussion about an alternative take on the RPG genre.
A traditional core mechanic of the RPG genre is that you through gameplay gradually earns xp which occasionally increases your level and subsequently unlocks new abilities.
I think these level-based progression schedules are being a bit overdone these days, especially since RPG mechanics are seeping into other genres, for example FPS with all their gradual weapons unlocks and so on. These designs can be dangerous because they
You've reached the end of this feed.

