You absolutely can do arbitrary math on an 8-bit processor. You just need several operations to handle the carry and storage for the intermediate results.
Also, NES sprites are limited to 3 colors per sprite tile. And only 8 foreground sprites in a single row, without flickering.
Ultimately, none of the kids these days care, and anything that looks pixelated (even if the blocks don't fall on a discernible grid) will be called "8-bit".
I guarantee yours is faster, since it uses a square vs a 4th power. But let's see...
/me goes and runs some benchmarks...
So. Some very shitty benchmarks. Running each version 1 million times with random inputs.
The OP's original version: 305 ms
OP's version with Math.pow replaced with just (x * x * x * x): 155 ms
OP's version with a generated lookup table: 42 ms
Your (mrhorrible) version: 55 ms
My simplified 4th power version (more on that later): 25 ms
Now, I can make the original version as fast as yours by unrolling all of the possible arguments into a compile-time switch statement. It turns out that while this isn't any faster than doing a tiny bit of math, it does level the playing field for any possible pure function with a well-defined input domain.
My simplified 4th power version's domain and range are both [0, 1] so you would transform the output if you really wanted a different range. I know the OP's and your functions both go from [0, 0.9] but I'm not sure why.
I know you're not trolling. But the question is: why do you think your version is appreciably better than OP's version? How fast is yours vs his? Have you benchmarked it?
Are you not trolling? I implemented his original equation in Clojure (Lisp on the JVM) and it can do this calculation 5 million times per second with no type hints.
Why the heck would you be worried about performance? There's no room for locality issues, or anything like that.
I'm just saying, the "luck" hypothesis is basically about as useful as saying the universe was created last Thursday.
No game that is completed and announced on the Internet to the gaming community goes completely unnoticed. It's called "release" because it is out in the open.
Unless the announcement has disappeared from the Internet completely, then it should spread by all sorts of venues. Google will index the announcement, people will tell their gamer friends, post about it on Reddit (hey look at this game I found), Tweet about it, etc..
Even if a game is obscure it is still not unknown.
Isn't that convenient? Your narrative for why your indie game may or may not succeed is basically unverifiable? What's different from this vs. saying the vengeful Indie Gaming God has cursed you?
By definition, they haven't been discovered, so no one can tell you...
Games don't just fall from the sky and wait for someone to stumble upon them. I mean "released" games. And by "released" I mean completed, announced, downloadable.
If some dumbass built the next Minecraft and didn't release it, that doesn't count.
There's room for Spelunky and La Mulana and Terraria (yes, I know they are all different). Indie games in particular do not cannibalize each other. Maybe some people won't buy Battlefield because they bought CoD, but I see most people buying more games than they can reasonably play, anyway. This is even more the case with niche/indie games.
It fell flat because it was weird and only weird people (like me) bought it. Same for BG&E. I gave these games to my brother in law and he was just like "WTF?"
So no, I don't think they were unlucky. I think they were artistic triumphs made with a big budget that failed to resonate with a mass market. If they had been produced on budgets that matched their markets they would have been deemed successes.
Yes, I think this is really important. If it's just about luck, then we should be able to predict that there are tons of amazing games just waiting to be discovered out there.
Introversion's early games weren't broadly appealing. They were simplistic and stylized so that they resonated with people who liked programming and cyberpunk, and they sold accordingly.
They contacted Steam, and because DEFCON was a game that could appeal to many Steam gamers, they got a deal.
Prison Architect is a game that even more people can appreciate and so, unsurprisingly, it's selling more than their previous games.
The simple fact is that successful games get people's attention one way or another, and it's either because YOU got it out there, or SOMEONE ELSE does.
Maybe you are lucky to have a decent idea, and to be born at the right time and place to have the opportunity to build it, but after you've made your game there's no luck about it. You don't just make a shitty game and hope that the Internet just decides to throw money at you for no reason.
Even if you think a popular work (a game, book, movie, music, whatever) sucks from an artistic standpoint, it is still visible and resonates with the market enough to sell.
If it were just about luck, then there would be a hidden trove of highly appealing games out there that are just waiting to be discovered. Where are these "unlucky" games that deserve the same success as the ones we all know?
I'm making predictions on a scientific hypothesis here.
I'd been anxiously awaiting Fez since it was just a mock-up on some pixel art forum circa 2005. I thought Phil Fish was the most talented guy I'd ever seen. I really don't understand why people hate him.
Why draw pixel art of something that was already great pixel art?
You absolutely can do arbitrary math on an 8-bit processor. You just need several operations to handle the carry and storage for the intermediate results.
Also, NES sprites are limited to 3 colors per sprite tile. And only 8 foreground sprites in a single row, without flickering.
Ultimately, none of the kids these days care, and anything that looks pixelated (even if the blocks don't fall on a discernible grid) will be called "8-bit".
That is not any definition of "pretentious".
OED says:
I guarantee yours is faster, since it uses a square vs a 4th power. But let's see...
/me goes and runs some benchmarks...
So. Some very shitty benchmarks. Running each version 1 million times with random inputs.
The OP's original version: 305 ms
OP's version with Math.pow replaced with just (x * x * x * x): 155 ms
OP's version with a generated lookup table: 42 ms
Your (mrhorrible) version: 55 ms
My simplified 4th power version (more on that later): 25 ms
Now, I can make the original version as fast as yours by unrolling all of the possible arguments into a compile-time switch statement. It turns out that while this isn't any faster than doing a tiny bit of math, it does level the playing field for any possible pure function with a well-defined input domain.
MrMusAddict's original, unrolled: 55 ms
mrhorrible's, unrolled: 55 ms
Here's some code: https://gist.github.com/jcromartie/9099643
My simplified 4th power version's domain and range are both [0, 1] so you would transform the output if you really wanted a different range. I know the OP's and your functions both go from [0, 0.9] but I'm not sure why.
I know you're not trolling. But the question is: why do you think your version is appreciably better than OP's version? How fast is yours vs his? Have you benchmarked it?
Are you not trolling? I implemented his original equation in Clojure (Lisp on the JVM) and it can do this calculation 5 million times per second with no type hints.
Why the heck would you be worried about performance? There's no room for locality issues, or anything like that.
The compiler will also likely do that for you.
That would be a good tradeoff: brighter, but you have the lurking fear that it will just stop.
Very nice touch.
Although can't it be simplified to:
The end result is a set of resources that are used to add lights at runtime, not just a sprite sheet.
Wow, looks great. Unfortunately I don't have the hardware for it...
Do they have issues attracting players, or is the issue in making enough money from them?
I'm just saying, the "luck" hypothesis is basically about as useful as saying the universe was created last Thursday.
No game that is completed and announced on the Internet to the gaming community goes completely unnoticed. It's called "release" because it is out in the open.
Unless the announcement has disappeared from the Internet completely, then it should spread by all sorts of venues. Google will index the announcement, people will tell their gamer friends, post about it on Reddit (hey look at this game I found), Tweet about it, etc..
Even if a game is obscure it is still not unknown.
Isn't that convenient? Your narrative for why your indie game may or may not succeed is basically unverifiable? What's different from this vs. saying the vengeful Indie Gaming God has cursed you?
Games don't just fall from the sky and wait for someone to stumble upon them. I mean "released" games. And by "released" I mean completed, announced, downloadable.
If some dumbass built the next Minecraft and didn't release it, that doesn't count.
There's room for Spelunky and La Mulana and Terraria (yes, I know they are all different). Indie games in particular do not cannibalize each other. Maybe some people won't buy Battlefield because they bought CoD, but I see most people buying more games than they can reasonably play, anyway. This is even more the case with niche/indie games.
You're right, the second point does not necessarily follow from the hypothesis.
It fell flat because it was weird and only weird people (like me) bought it. Same for BG&E. I gave these games to my brother in law and he was just like "WTF?"
So no, I don't think they were unlucky. I think they were artistic triumphs made with a big budget that failed to resonate with a mass market. If they had been produced on budgets that matched their markets they would have been deemed successes.
Yes, I think this is really important. If it's just about luck, then we should be able to predict that there are tons of amazing games just waiting to be discovered out there.
And, of course, there aren't.
Introversion's early games weren't broadly appealing. They were simplistic and stylized so that they resonated with people who liked programming and cyberpunk, and they sold accordingly.
They contacted Steam, and because DEFCON was a game that could appeal to many Steam gamers, they got a deal.
Prison Architect is a game that even more people can appreciate and so, unsurprisingly, it's selling more than their previous games.
As I said in my other comment:
Where are these great games that just haven't been "noticed" yet?
The hypothesis is: "Success as an indie game developer is mostly luck, independent of how appealing your game is."
Based on that, we can form predictions that support the hypothesis, namely:
Edit: removed second point, it does not follow
Fuck this whole "luck" meme.
The simple fact is that successful games get people's attention one way or another, and it's either because YOU got it out there, or SOMEONE ELSE does.
Maybe you are lucky to have a decent idea, and to be born at the right time and place to have the opportunity to build it, but after you've made your game there's no luck about it. You don't just make a shitty game and hope that the Internet just decides to throw money at you for no reason.
Even if you think a popular work (a game, book, movie, music, whatever) sucks from an artistic standpoint, it is still visible and resonates with the market enough to sell.
If it were just about luck, then there would be a hidden trove of highly appealing games out there that are just waiting to be discovered. Where are these "unlucky" games that deserve the same success as the ones we all know?
I'm making predictions on a scientific hypothesis here.
I think consumers went on to buy Terraria because it's fun. I can't even find any solid info about this video controversy you're talking about.
Many of the most creative people suffer from mental disorders. It's kind of a creative turbocharger.
I'd been anxiously awaiting Fez since it was just a mock-up on some pixel art forum circa 2005. I thought Phil Fish was the most talented guy I'd ever seen. I really don't understand why people hate him.