00:00
00:00
Newgrounds Background Image Theme

Forsynth just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

The Flash 'Reg' Lounge

3,047,250 Views | 60,186 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2015-10-01 01:17:45 (edited 2015-10-01 01:18:37)


I've been working on fun, simple little PHP-based APIs that do useful things for the company.
I've got a whois API and a website screenshot API going. Not bad.

whois:

<?php error_reporting(0); foreach ($argv as $arg) { $e = explode("=", $arg); if(count($e) == 2) { $_GET[$e[0]] = $e[1]; } else { $_GET[] = $e[0]; } } if (!isset($_GET["domain"]) || is_null($_GET["domain"]) || $_GET["domain"] == "") { die("{}"); } $whois = array(); exec("whois '".escapeshellcmd($_GET["domain"])."' | grep Registrant", $whois); $count = count($whois); for ($i = 0; $i < $count; $i++) { $arr = explode(":", $whois[$i]); $before = trim($arr[0]); $after = trim($arr[1]); $whois[$before] = $after; unset($whois[$i]); } echo(json_encode((object) $whois)); ?>

screenshot:

<?php error_reporting(0); foreach ($argv as $arg) { $e = explode("=", $arg); if(count($e) == 2) { $_GET[$e[0]] = $e[1]; } else { $_GET[] = $e[0]; } } if (!isset($_GET["url"]) || is_null($_GET["url"]) || $_GET["url"] == "") { die(); } $hostname = null; $hostname = $_SERVER['HTTP_HOST']; if (is_null($hostname) || $hostname == "") { $hostname = $_SERVER['SERVER_NAME']; } $file = preg_replace("([^\w\s\d\-_~,;:\[\]\(\).])", '', $_GET["url"]); $file = preg_replace("([\.]{2,})", '', $file); $mobile = false; if (isset($_GET["mobile"]) && $_GET["mobile"] == "true") { $mobile = true; } if (!$mobile) { unlink(dirname(__FILE__)."/webshots/".$file.".jpg"); exec("wkhtmltoimage " ." --load-error-handling ignore" ." --quality 100" ." -q" ." --width 1920" ." --custom-header \"User-Agent\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36\"" ." --custom-header-propagation" ." '".escapeshellcmd($_GET["url"])."'" ." /var/www/html/webshots/".$file.".jpg" ); echo("http".(isset($_SERVER['HTTPS']) ? "s": "")."://".$hostname."/webshots/".$file.".jpg"); } else { unlink(dirname(__FILE__)."/webshots/".$file."-mobile.jpg"); exec("wkhtmltoimage " ." --load-error-handling ignore" ." --quality 100" ." -q" ." --width 360" ." --custom-header \"User-Agent\" \"Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30\"" ." --custom-header-propagation" ." '".escapeshellcmd($_GET["url"])."'" ." /var/www/html/webshots/".$file."-mobile.jpg" ); echo("http".(isset($_SERVER['HTTPS']) ? "s": "")."://".$hostname."/webshots/".$file."-mobile.jpg"); } ?>

I feel really dirty about making exec calls, but at least it works.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-01 22:33:12


At 9/25/15 04:10 PM, Glaiel-Gamer wrote:
At 9/25/15 12:23 PM, Rustygames wrote: One problem if you're working on your own a lot is that actually you'll find it hard fitting into employment as it usually involves team work and other skills you might now have picked up working independently. It's not like you can just walk into a high paid job just because you're older and have spent more time doing it, you need a certain set of skills
Yeah plus big companies want you to specialize. On my games I do: engine code, gameplay code, graphics code, game design, level design, special fx code, tools code, sound code, etc. Jumping between jobs depending on what I feel like working on. I like doing all of those things so I'd probably go crazy if I was locked into just doing 1 of them and had no control over the rest of the project.

When I attempt this form of developing, it always tends to fall flat. I enjoy touching every aspect of my games. But the quality of code/animation/art/design that I can produce varies. And even if I want to focus on Game Design for a particular project, I may gravitate towards something like programming a tool, programming some AI, direction the audio design, or making art. Instead of what I set out to do, which was to make a well designed game.


BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-06 00:35:58


When I close certain apps on my laptop, the whole computer hangs for a bit. I think it has to do with my switchable graphics and the drivers that Win10 gave me. The flash 19 debugger makes things hang for about a minute when I close it, so I'm pretty much over flash now.

Response to The Flash 'Reg' Lounge 2015-10-06 01:10:11


At 10/6/15 12:35 AM, MSGhero wrote: When I close certain apps on my laptop, the whole computer hangs for a bit. I think it has to do with my switchable graphics and the drivers that Win10 gave me. The flash 19 debugger makes things hang for about a minute when I close it, so I'm pretty much over flash now.

Never mind. The hang happens when the gpu switches from the good one to the bad one, so I told the debugger to only use the bad one. Not that I even use the gpu with flash.

Response to The Flash 'Reg' Lounge 2015-10-08 01:27:43


I feel like we need a discussion on The Beginner's Guide.

There's two points I want to tackle:
1. Fact or fiction? Is this a real story?
2. If 1 is true, then why is it being sold? For money?

Dunno if anyone else here has played it or been spoiled on it yet, so I'll leave it at that for now.
Though I'd say if you're into making games you should probably give it a look.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-08 06:12:45


At 10/8/15 01:27 AM, egg82 wrote: I feel like we need a discussion on The Beginner's Guide.

He's truly the Banksy of game development.

Response to The Flash 'Reg' Lounge 2015-10-08 14:10:30


At 10/8/15 01:27 AM, egg82 wrote: 2. If 1 is true, then why is it being sold? For money?

I've no idea if the game's story is based on fact, but even if it is a work of non-fiction, why should that preclude the possibility of profiting off of the telling of the story?

Response to The Flash 'Reg' Lounge 2015-10-08 22:12:00


At 10/8/15 02:10 PM, Diki wrote: I've no idea if the game's story is based on fact, but even if it is a work of non-fiction, why should that preclude the possibility of profiting off of the telling of the story?

The story, sure. However he's also selling his old friend's games along with it.
Not only did he not get authorization for distributing the games (in fact Coda told him not to) - he actually sold those games.

I mean, let's be honest, the game is really nothing without them. The games are an integral part of the experience, and you can't argue that they're not being sold if the whole thing is being sold.

I would be really, really pissed if I were in Coda's shoes. Coda told him (explicitly, over and over, according to the story) not to distribute his games. Not only did he not listen (and that's what caused the whole fiasco in the first place, remember) but now he's not listening again and making a profit off of it.

I dunno. I get why and the reason behind it all, but at the same time it feels like a major dick-move.

Soo, yeah. I'm kinda hoping it's fiction, even though my experience is telling me it's probably not.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-08 22:40:44


At 10/8/15 10:12 PM, egg82 wrote: The story, sure. However he's also selling his old friend's games along with it.
Not only did he not get authorization for distributing the games (in fact Coda told him not to) - he actually sold those games.

Ah, okay. I don't know anything about this game nor do I know who/what Coda is so I can't offer any opinion on that. I just thought you were taking umbrage with someone selling a non-fiction story, which would be stupid, but you weren't; disregard this crazy canuck.

Response to The Flash 'Reg' Lounge 2015-10-08 23:42:29


At 10/8/15 10:40 PM, Diki wrote: Ah, okay. I don't know anything about this game nor do I know who/what Coda is so I can't offer any opinion on that. I just thought you were taking umbrage with someone selling a non-fiction story, which would be stupid, but you weren't; disregard this crazy canuck.

Haha. I'm hoping someone I can actually talk to plays it. I'd like to hear more opinions on it, because the whole game spawns quite a lot of discussion topics.
Plus, it's cheap and pretty short. 88 minutes seems about the average playtime for this one.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-09 00:34:26 (edited 2015-10-09 00:37:13)


At 10/8/15 10:40 PM, Diki wrote:
At 10/8/15 10:12 PM, egg82 wrote: The story, sure. However he's also selling his old friend's games along with it.
Not only did he not get authorization for distributing the games (in fact Coda told him not to) - he actually sold those games.
Ah, okay. I don't know anything about this game nor do I know who/what Coda is so I can't offer any opinion on that. I just thought you were taking umbrage with someone selling a non-fiction story, which would be stupid, but you weren't; disregard this crazy canuck.

its 100% fiction the entire point of the game is that davey and coda are the same person

also I hated the game and though it was really pretentious most of the time.

maybe I would have found it more interesting if I "bought into the story" but its kinda hard to do that when davey's a person I actually know in real life (most full-time indie devs know each other from conventions and mailing lists and stuff)

Response to The Flash 'Reg' Lounge 2015-10-09 03:24:51


At 10/9/15 12:34 AM, Glaiel-Gamer wrote: its 100% fiction the entire point of the game is that davey and coda are the same person

Then well done to Davey! He managed to fool a lot of people.
Stuff like that still does happen, though. For one reason or another relationships fall through and good developers stop going.

also I hated the game and though it was really pretentious most of the time.

Possibly because you already knew? It really doesn't come off as being pretentious to me at all, but looking back at it with the thought of "It's actually him" in mind it really seems that way.

maybe I would have found it more interesting if I "bought into the story" but its kinda hard to do that when davey's a person I actually know in real life (most full-time indie devs know each other from conventions and mailing lists and stuff)

I figured one of you guys had to have known something more about it. Glad to know now!

The game still has a few interesting topics it brings up, anyway.
Like, do games need to be playable to other people? Can they just be art? (What defines art, really?)
And finally, is it really okay if a game isn't meant to be played? By anyone?
I mean, that's just a set of questions I had in mind during one specific part, but that's a start.

I personally am more driven by making things and sharing things with and for other people. I think games should be playable by a gamer because that's a big part of the game. Otherwise, it would just be a movie or a book. Games require player interaction, and that's what differentiates them.

Dear Esther comes to mind again, with the whole "games is/as art" topic. The problem with that game is, again, the user interaction. It told a story and it did so.. Well enough, I'd say. The problem was it was boring. Like, really just boring. I had to force myself to finish it so I could get the story, and that was incredibly tedious.
(Speaking of tedious and waiting a long time to get the full story, MMOs anyone? I mean, what makes them special? It's the same thing but with more action, really.)


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-09 03:32:48


Two more items on a similar-yet-unrelated topic:

1. How do we effectively teach good game design and development from the ground-up? I know when I started out I learned everything wrong and had to start again years later.
2. Why do game devs quit? I mean, this is kinda a terrible question but there's a better question hidden under this one somewhere that I can't find because it's 1 AM.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-10 00:49:03 (edited 2015-10-10 00:51:08)


It's not often that I optimize my code, but when I do it's for quantum computers.
https://www.youtube.com/watch?v=-kTDmsNumVE&feature=youtube_video_deck

How in the fuck would you even begin to comprehend optimization for Schrodinger's PC?

"ALL of my bitwise operations are useless!"


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-10 21:36:46


I'm making some progress on my just-for-fun multiplayer roguelike game. There isn't much gameplay yet, but you can fight stuff, which consists of some simple dice rolls.

Do you guys know where I can find a list of fantasy sounding names ? "Kevin Williams" doesn't exactly sound like a hero.

I also have no idea how I'm going to do the procedural world generation, so if anyone has experience with that I would be interested to hear about it. I was reading about this technique which sounded interesting: http://shanee.io/blog/2015/09/25/procedural-island-generation/

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2015-10-10 21:45:09


At 10/10/15 09:36 PM, PrettyMuchBryce wrote: I'm making some progress on my just-for-fun multiplayer roguelike game. There isn't much gameplay yet, but you can fight stuff, which consists of some simple dice rolls.

Do you guys know where I can find a list of fantasy sounding names ? "Kevin Williams" doesn't exactly sound like a hero.

I also have no idea how I'm going to do the procedural world generation, so if anyone has experience with that I would be interested to hear about it. I was reading about this technique which sounded interesting: http://shanee.io/blog/2015/09/25/procedural-island-generation/

I'd want to play as Kevin Williams.

I'm doing proc gen in my game, but I really haven't gotten to the part where I'm actually genning anything besides pretty perlin grass on the ground. My biomes are assigned by "randomly splotching color" onto the map, and lakes and hills right now are randomly sized and placed. If you find or come up with something neat, let me know haha.

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2015-10-10 21:50:58 (edited 2015-10-10 21:54:15)


At 10/10/15 09:36 PM, PrettyMuchBryce wrote: Do you guys know where I can find a list of fantasy sounding names ? "Kevin Williams" doesn't exactly sound like a hero.

these two are pretty good.

I also have no idea how I'm going to do the procedural world generation, so if anyone has experience with that I would be interested to hear about it.

I always use generators based on Conway's Game of Life. Same concept, just tweaking it a bit.
I, at one point, had a script I threw together that generated this - it's probably still on my HDD somewhere if I can find it.

Edit: Man, everyone's posting cool stuff without me.
I've actually also been finishing up my framework (fixing bugs and making improvements) while developing a game I tried to make a few years ago. Not my concept/idea, but very much my code.
Do you like framerate?


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-11 00:15:19


At 10/10/15 09:50 PM, egg82 wrote: these two are pretty good

Ah thanks! I think I will snag some names from that second link.

Response to The Flash 'Reg' Lounge 2015-10-11 13:22:58 (edited 2015-10-11 13:25:04)


At 10/10/15 09:45 PM, MSGhero wrote: I'm doing proc gen in my game, but I really haven't gotten to the part where I'm actually genning anything besides pretty perlin grass on the ground. My biomes are assigned by "randomly splotching color" onto the map, and lakes and hills right now are randomly sized and placed. If you find or come up with something neat, let me know haha.

Yeah this is similar to how I've done it in the past. Typically I've done something like a series of functions which run to try to place something on the map in various positions and sizes. This is bounded by some min and max number of the thing I'm trying to place, in addition to some counter which represents the number of times I'm willing to try to place it.

For example I'll try to place a mountain range of some certain size, but if the place I'm trying to place it is occupied, I will try again until I run out of tries. This approach works, but the results are sometimes pretty boring.

Also, writing procedural worldgen code can be pretty infuriating to debug considering it's all pretty random. This means you could get into some weird case where the worldgen actually crashes the game, but it only happens like 0.001% of the time. Argh! *Smashes computer*

EDIT: Speaking of which, this gives me an idea. I should be printing out the seed of each random world I generate incase this ever happens so that I can reproduce these types of issues. Derp.

Response to The Flash 'Reg' Lounge 2015-10-11 14:41:41


At 10/11/15 01:22 PM, PrettyMuchBryce wrote: EDIT: Speaking of which, this gives me an idea. I should be printing out the seed of each random world I generate incase this ever happens so that I can reproduce these types of issues. Derp.

Right now, my seed comes from my current build version, so the swf will spit out the same map each time it's run. And the builds are sequential, so I can manually plug in "the number from 3 compiles ago" if I wanted to see that one again.

How you described the mountains is exactly how I'm doing hills and lakes, though the map is big enough that I let it run to completion rather than cutting it off after a certain number of failed iterations. If I could take "not boring looking" and turn that into an algorithm, I'd use that instead.

Response to The Flash 'Reg' Lounge 2015-10-11 17:26:07


At 10/10/15 09:36 PM, PrettyMuchBryce wrote: I'm making some progress on my just-for-fun multiplayer roguelike game. There isn't much gameplay yet, but you can fight stuff, which consists of some simple dice rolls.

Do you guys know where I can find a list of fantasy sounding names ? "Kevin Williams" doesn't exactly sound like a hero.

I also have no idea how I'm going to do the procedural world generation, so if anyone has experience with that I would be interested to hear about it. I was reading about this technique which sounded interesting: http://shanee.io/blog/2015/09/25/procedural-island-generation/

I think it would be cool to have a main protagonist named like "Kevin Williams" whereas all other guys are names from fantasy generator :D


Undecima - the World of Strategy and Battle

Response to The Flash 'Reg' Lounge 2015-10-14 08:20:56


At 10/9/15 12:34 AM, Glaiel-Gamer wrote:
At 10/8/15 10:40 PM, Diki wrote:
At 10/8/15 10:12 PM, egg82 wrote: The story, sure. However he's also selling his old friend's games along with it.
Not only did he not get authorization for distributing the games (in fact Coda told him not to) - he actually sold those games.
Ah, okay. I don't know anything about this game nor do I know who/what Coda is so I can't offer any opinion on that. I just thought you were taking umbrage with someone selling a non-fiction story, which would be stupid, but you weren't; disregard this crazy canuck.
its 100% fiction the entire point of the game is that davey and coda are the same person

also I hated the game and though it was really pretentious most of the time.

maybe I would have found it more interesting if I "bought into the story" but its kinda hard to do that when davey's a person I actually know in real life (most full-time indie devs know each other from conventions and mailing lists and stuff)

I really enjoyed the game. It was obvious very quickly that it was all made up and it was an artsy piece, like you say. A tad pretentious, true, but I think it was quite unique, well put together and interesting.

I'm not sure all indie devs do know each other from conventions etc. Conventions are for a specific type of indie dev, I think there are just as many people who don't want to be part of that scene as there are those that do. Maybe 'famous' indie devs all know each other from these things, but that's because the fame or just being part of the community is one of the key motivations for those types of guys?


- Matt, Rustyarcade.com

Response to The Flash 'Reg' Lounge 2015-10-14 09:07:30


At 10/13/15 03:18 PM, Innermike wrote: and any other number of reasons that could apply to any number of other hobbies/occupations

Sup Mike.

Response to The Flash 'Reg' Lounge 2015-10-14 13:59:46


It's innermike !

Response to The Flash 'Reg' Lounge 2015-10-14 15:29:41


At 10/14/15 08:20 AM, Rustygames wrote: I'm not sure all indie devs do know each other from conventions etc. Conventions are for a specific type of indie dev, I think there are just as many people who don't want to be part of that scene as there are those that do. Maybe 'famous' indie devs all know each other from these things, but that's because the fame or just being part of the community is one of the key motivations for those types of guys?

conventions "and mailing lists and stuff", there's a big mailing list with like a thousand people on it, and a few smaller ones. networking a ton is sorta necessary if you want to make a living on it.

Response to The Flash 'Reg' Lounge 2015-10-15 03:52:56


At 10/15/15 12:35 AM, CodeCrunch wrote: @Glaiel-Gamer so I guess you know the Undertale guy too?

nope seems like he kinda came out of nowhere

Response to The Flash 'Reg' Lounge 2015-10-17 00:17:35


Maybe it is possible after all... 18yo solo MMO dev: http://store.steampowered.com/app/407700

Response to The Flash 'Reg' Lounge 2015-10-17 12:55:37


Hey, any of you cuties in need for an artist?
I wanna become more active again.


BBS Signature

Response to The Flash 'Reg' Lounge 2015-10-18 00:41:52


Well I'm spending some free time working on the rogue-like game this weekend. This is what it looks like when you attack a town and capture it. The g's are guards. The C is the castle.

I picked better names thanks to egg82. No more Kevin Williams. Maybe I can leave him in as an easter egg.. since he is, of course, the true hero within us all.

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2015-10-21 18:50:01


I made a camera shake function because no good ones existed.

private function cameraShake(intensity:Number, duration:Number):void { var randDuration:Number = MathUtil.random(0.1, 0.2); duration -= randDuration; TweenMax.delayedCall(duration, TweenMax.to, [ this, randDuration, { "x": stage.stageWidth / 2, "y": stage.stageHeight / 2, "rotation": 0, "ease": Elastic.easeOut } ]); while (duration > 0) { if (duration <= 0.2) { randDuration = duration; } else { randDuration = MathUtil.random(0.1, 0.2); } duration -= randDuration; TweenMax.delayedCall(duration, TweenMax.to, [ this, randDuration, { "x": x + (MathUtil.random(-1, 1) * intensity), "y": y + (MathUtil.random(-1, 1) * intensity), "rotation": MathUtil.random(-0.0174533, 0.0174533) * intensity, "ease": Elastic.easeOut } ]); TweenMax.delayedCall(duration, TweenMax.to, [ this, randDuration, { "x": x + (MathUtil.random(-1, 1) * intensity), "y": y + (MathUtil.random(-1, 1) * intensity), "rotation": MathUtil.random(-0.0174533, 0.0174533) * intensity, "ease": Elastic.easeOut } ]); } }
Still not sure if this one's good, but it looks okay at 12 FPS on this laptop

Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature