Be a Supporter!

The Flash 'Reg' Lounge

  • 1,985,908 Views
  • 64,533 Replies
New Topic Respond to this Topic
egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Supporter
Level 05
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-12 16:52:07 Reply

So after watching the entire 1.4 million particle thing, I really wanted to record it for you guys so you could watch it (it really is beautiful) - so far the best FPS i'm getting is from FRAPS in FireFox, which records at 60 but dropped as low as 30 during one bit of the recording. I'm experimenting with some different stuff, but yeah. It's really nice and you should see it in its full 60 FPS glory :3

Here's a quick benchmark while not recording, if anyone's interested. Probably not, but I did it anyway :P
2013-11-12 14:40:50 - FlashPlayerDebugger
Frames: 22485 - Time: 374746ms - Avg: 60.001 - Min: 59 - Max: 61


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to The Flash 'Reg' Lounge 2013-11-12 19:03:35 Reply

At 11/12/13 04:52 PM, egg82 wrote: I really wanted to record it for you guys so you could watch it

Well I couldn't tell a difference in framerate between your recording and running it (fullscreen) on my low end macbook air so I think PS may be the only guy to really benefit, but yeah upload the full thing to your YT anyway, it's pretty cute.

Sidenote, since when does youtube officially support 60fps? I had friends that used to upload gameplay and they said youtube forcibly cuts it down to 30

nobody

egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Supporter
Level 05
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-12 19:11:23 Reply

At 11/12/13 07:03 PM, Innermike wrote: Well I couldn't tell a difference in framerate between your recording and running it (fullscreen) on my low end macbook air so I think PS may be the only guy to really benefit, but yeah upload the full thing to your YT anyway, it's pretty cute.

hmm, I suppose I can see why. Anyway, yeah. I think I figured out how to record it at true settings with true quality, I just gotta make sure the final mp4 (after render) isn't artifacted, even though YT will artifact it anyway. Don't want to compound the problem.

Sidenote, since when does youtube officially support 60fps? I had friends that used to upload gameplay and they said youtube forcibly cuts it down to 30

29.97, actually. And probably never, though usually you can still tell the different between a 60 FPS recording and a 30 FPS recording, even when the final video is cut down.


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Supporter
Level 05
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-13 13:35:27 Reply

Recorded, edited, encoded, and uploaded.
Framrate for the most part was anywhere between 57-60, though a few times during intense sections it dropped to about 45. Once it dropped to as low as 35 :(
Encoded it with blu-ray quality settings and compressed it down into an mp4.
Uploaded to both YouTube and MediaFire because YouTube re-encodes videos with really poor-quality settings.
Original file is on MediaFire, I seriously recommend watching it there. The YT video looks awful in comparison.

Enjoy?

YouTube: https://www.youtube.com/watch?v=1GPdvy-NlC4
MediaFire: http://www.mediafire.com/watch/114dffkprmw7jt8/Particles.mp4


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Supporter
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2013-11-13 22:10:38 Reply

Just checking in. Been very busy with full time job. I really miss having time to devote to passion projects. I do have a side project going on, and it's pretty neat; but nothing really more to say about it right now. I am also pumping some effort into my Javascript Pathfinding library EasyStarJS: https://github.com/prettymuchbryce/easystarjs. I am redoing the website for it with node.js/express/foundation/pixi.js. I am also experimenting with implementing another algorithm called Jump Point Search into the library. Otherwise last night I downloaded Unity 4.3, and played around with the new 2D stuff a little bit. It's very clever and fun to use. The thing that is great about Unity is just how fast you can get going and making content. It reminds me of building games in flash with the IDE. Super fun.

I've been playing RimWorld, a super fun strategy-type game. You should check it out. I also played rogue legacy, but I felt it was a little too grindy for my tastes. Yeah.

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-13 22:50:57 Reply

At 11/13/13 10:10 PM, PrettyMuchBryce wrote: I am also pumping some effort into my Javascript Pathfinding library EasyStarJS: https://github.com/prettymuchbryce/easystarjs.

Looks pretty neat. I might add it to my thing if I ever end up using a* for something other than rpg movement. On average, nothing is going on besides rendering, so I can get away with unoptimized grid searches.

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 14:12:56 Reply

The full story of MSGHero for throwback Thursday.

Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to The Flash 'Reg' Lounge 2013-11-14 14:13:23 Reply

Java GUI development is the shittest thing I've ever had to do.

Java development is the shittest thing I've ever had to do.
Rustygames
Rustygames
  • Member since: May. 7, 2005
  • Offline.
Forum Stats
Supporter
Level 19
Programmer
Response to The Flash 'Reg' Lounge 2013-11-14 15:53:45 Reply

I come with a challenge.

You have to convert one word to another, changing only one letter at a time. Every step between must be a real word.

For example cat -> dog:

cat
cot
dot
dog

You must return the shortest possible path, or detect if there is no path. You must do this in the quickest time (shortest number of branches) possible.

Test word for you: short -> bread

No googling for solutions

No one will try this, but if anyone is bored then you have no excuse to be :)


- Matt, Rustyarcade.com

Glaiel-Gamer
Glaiel-Gamer
  • Member since: Dec. 28, 2004
  • Offline.
Forum Stats
Member
Level 28
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 15:57:48 Reply

At 11/14/13 03:53 PM, Rustygames wrote: I come with a challenge.

You have to convert one word to another, changing only one letter at a time. Every step between must be a real word.

For example cat -> dog:

cat
cot
dot
dog

You must return the shortest possible path, or detect if there is no path. You must do this in the quickest time (shortest number of branches) possible.

Test word for you: short -> bread

No googling for solutions

No one will try this, but if anyone is bored then you have no excuse to be :)

Generate a graph from a dictionary (link all words which differ by 1 letter to each other).
Run Dijkstra's algorithm on it.

i dont feel like coding it but that works

Rustygames
Rustygames
  • Member since: May. 7, 2005
  • Offline.
Forum Stats
Supporter
Level 19
Programmer
Response to The Flash 'Reg' Lounge 2013-11-14 16:34:06 Reply

At 11/14/13 03:57 PM, Glaiel-Gamer wrote: Generate a graph from a dictionary (link all words which differ by 1 letter to each other).
Run Dijkstra's algorithm on it.

i dont feel like coding it but that works

I like it. Why not A* though?


- Matt, Rustyarcade.com

TheEnkian
TheEnkian
  • Member since: Dec. 18, 2012
  • Offline.
Forum Stats
Supporter
Level 19
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 17:28:21 Reply

At 11/14/13 02:12 PM, MSGhero wrote: The full story of MSGHero for throwback Thursday.

Bards of the future will sing this story, provided that the future brings back bards.


Working on Enki Adventures, an action-adventure roguelike!
Enkian Games Website - For blog posts
Enkian Games Twitter For game updates
The Enkian Twitter - For personal tweets

Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 17:40:02 Reply

At 11/14/13 03:53 PM, Rustygames wrote: I come with a challenge.

The lazy way to do it is to calculate the Levenshtein distance, keeping track of the changes made. I'm too lazy to program even the laziest of solutions though.

Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 17:43:12 Reply

At 11/14/13 05:40 PM, Archawn wrote:
At 11/14/13 03:53 PM, Rustygames wrote: I come with a challenge.
The lazy way to do it is to calculate the Levenshtein distance, keeping track of the changes made. I'm too lazy to program even the laziest of solutions though.

Oh, silly me, they need to be words in between. Glaiel had it right then. Go Glaiel

PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Supporter
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2013-11-14 19:03:43 Reply

At 11/14/13 04:34 PM, Rustygames wrote: I like it. Why not A* though?

Cool problem. A* would be faster. Use the current difference in letters from the target as your heuristic.

Here is one. Given two lists of unsorted unique integers, find the nth lowest of both in the lowest time complexity. No google.

Hint: Solution can be achieved in linear time

Example
[0, 10, 2, 5]
[4, 8, 1, 7]

3rd lowest is 2

egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Supporter
Level 05
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 19:26:01 Reply

At 11/14/13 03:53 PM, Rustygames wrote: I come with a challenge.

I remember this challenge from a book of logic puzzles I had (I had quite a few as a kid)

Test word for you: short -> bread

short
sort
sot
bot
boat
bat
brat
brad
bread


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
Glaiel-Gamer
Glaiel-Gamer
  • Member since: Dec. 28, 2004
  • Offline.
Forum Stats
Member
Level 28
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 19:34:02 Reply

At 11/14/13 04:34 PM, Rustygames wrote:
At 11/14/13 03:57 PM, Glaiel-Gamer wrote: Generate a graph from a dictionary (link all words which differ by 1 letter to each other).
Run Dijkstra's algorithm on it.

i dont feel like coding it but that works
I like it. Why not A* though?

dijkstra's easier to implement and you can do it with a queue instead of a priority queue. optimize later if its actually slow (probably wont be slow)

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 20:33:16 Reply

At 11/14/13 07:03 PM, PrettyMuchBryce wrote:
At 11/14/13 04:34 PM, Rustygames wrote: I like it. Why not A* though?
Cool problem. A* would be faster. Use the current difference in letters from the target as your heuristic.

Here is one. Given two lists of unsorted unique integers, find the nth lowest of both in the lowest time complexity. No google.

Hint: Solution can be achieved in linear time

Example
[0, 10, 2, 5]
[4, 8, 1, 7]

3rd lowest is 2

There was some weird sort we talked about in java where you place numbers into "buckets" based on the last digit, then based on the 2nd to last, etc. 10 buckets for 10 digits it can end with, 10 buckets in each of those for 10 digits that can be in the tens spot, etc. It was linearish I think, maybe some coefficient based on the max length of a number. Then iterate through that thing to find the nth.

maybe
Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to The Flash 'Reg' Lounge 2013-11-14 23:05:42 Reply

At 11/14/13 08:33 PM, MSGhero wrote: There was some weird sort we talked about in java where you place numbers into "buckets" based on the last digit, then based on the 2nd to last, etc. 10 buckets for 10 digits it can end with, 10 buckets in each of those for 10 digits that can be in the tens spot, etc. It was linearish I think, maybe some coefficient based on the max length of a number. Then iterate through that thing to find the nth.
maybe

That sounds like a hash table with a very basic hash. Also sounds like there'd be a lot of memory overhead with potentially a lot of partially filled buckets.

or maybe I'm just going mad with this small amount of sleep I've had
PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Supporter
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2013-11-14 23:32:23 Reply

At 11/14/13 08:33 PM, MSGhero wrote:
At 11/14/13 07:03 PM, PrettyMuchBryce wrote:
At 11/14/13 04:34 PM, Rustygames wrote: I like it. Why not A* though?
Cool problem. A* would be faster. Use the current difference in letters from the target as your heuristic.

Here is one. Given two lists of unsorted unique integers, find the nth lowest of both in the lowest time complexity. No google.

Hint: Solution can be achieved in linear time

Example
[0, 10, 2, 5]
[4, 8, 1, 7]

3rd lowest is 2
There was some weird sort we talked about in java where you place numbers into "buckets" based on the last digit, then based on the 2nd to last, etc. 10 buckets for 10 digits it can end with, 10 buckets in each of those for 10 digits that can be in the tens spot, etc. It was linearish I think, maybe some coefficient based on the max length of a number. Then iterate through that thing to find the nth.
maybe

Radix sort. In any practical situation I would say you're right. This is a good solution. But just for fun what if each integer has a unique key length (number of digits) ? Maybe they are 64 bit floats instead of ints with many decimal places. We then have an average case of at least linearithmic time. How we do achieve an average case of linear time ?

I will post the solution I'm thinking of tomorrow if nobody gets it. I'll give you a hint. It involves the partition step of quicksort.

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-14 23:34:19 Reply

At 11/14/13 11:32 PM, PrettyMuchBryce wrote: Radix sort. In any practical situation I would say you're right.

Stopped reading after here.

PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Supporter
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2013-11-14 23:52:58 Reply

At 11/14/13 11:34 PM, MSGhero wrote:
At 11/14/13 11:32 PM, PrettyMuchBryce wrote: Radix sort. In any practical situation I would say you're right.
Stopped reading after here.

Typically these sorts of problems have very little practical application. That is not really the purpose. I mean.. when do you need find the shortest list of words by single letter permutation of "short" to"bread" ?

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-15 00:02:27 Reply

At 11/14/13 11:52 PM, PrettyMuchBryce wrote: Typically these sorts of problems have very little practical application. That is not really the purpose. I mean.. when do you need find the shortest list of words by single letter permutation of "short" to"bread" ?

In a terrible Saw movie.

Rustygames
Rustygames
  • Member since: May. 7, 2005
  • Offline.
Forum Stats
Supporter
Level 19
Programmer
Response to The Flash 'Reg' Lounge 2013-11-15 05:47:01 Reply

At 11/14/13 07:26 PM, egg82 wrote:
At 11/14/13 03:53 PM, Rustygames wrote: I come with a challenge.
I remember this challenge from a book of logic puzzles I had (I had quite a few as a kid)

Test word for you: short -> bread
short
sort
sot
bot
boat
bat
brat
brad
bread

I should have mentioned you aren't allowed to take away or add letters, just change them

At 11/14/13 07:34 PM, Glaiel-Gamer wrote:
At 11/14/13 04:34 PM, Rustygames wrote:
At 11/14/13 03:57 PM, Glaiel-Gamer wrote: Generate a graph from a dictionary (link all words which differ by 1 letter to each other).
Run Dijkstra's algorithm on it.

i dont feel like coding it but that works
I like it. Why not A* though?
dijkstra's easier to implement and you can do it with a queue instead of a priority queue. optimize later if its actually slow (probably wont be slow)

The difference in implementation between Dijkstra's and A* is tiny. I suspect some googling may have gone on here ;)

At 11/14/13 11:52 PM, PrettyMuchBryce wrote:
At 11/14/13 11:34 PM, MSGhero wrote:
At 11/14/13 11:32 PM, PrettyMuchBryce wrote: Radix sort. In any practical situation I would say you're right.
Stopped reading after here.
Typically these sorts of problems have very little practical application. That is not really the purpose. I mean.. when do you need find the shortest list of words by single letter permutation of "short" to"bread" ?

Was an interview question here and Dijkstra's was given as the best answer. I disputed this by saying A* was far superior and proved as much. I was wondering if anyone here fell into the same trap :)


- Matt, Rustyarcade.com

egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Supporter
Level 05
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-15 12:21:57 Reply

At 11/15/13 05:47 AM, Rustygames wrote: I should have mentioned you aren't allowed to take away or add letters, just change them

Proper nouns?


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
Rustygames
Rustygames
  • Member since: May. 7, 2005
  • Offline.
Forum Stats
Supporter
Level 19
Programmer
Response to The Flash 'Reg' Lounge 2013-11-15 14:20:41 Reply

At 11/15/13 12:21 PM, egg82 wrote:
At 11/15/13 05:47 AM, Rustygames wrote: I should have mentioned you aren't allowed to take away or add letters, just change them
Proper nouns?

Any dictionary you find and use I will accept :)


- Matt, Rustyarcade.com

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-15 15:41:33 Reply

Once again I'm left with the apt to myself for the weekend. Sucks that there isn't a game jam going on, no hw and no tests to interrupt either. We have a big LAN party going on tomorrow and Sunday, so I might go there to play some dota. I participated in the tournament last year, but I was put in a random team, and they weren't that good. So I'll just play solo or watch the tournament games.

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to The Flash 'Reg' Lounge 2013-11-15 16:02:29 Reply

At 11/15/13 03:41 PM, MSGhero wrote: Once again I'm left with the apt to myself for the weekend.

And so your sig is fulfilled yet again. Speaking of sigs, I need to start a catalog of all my potential MSG post sigs.


nobody

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-15 19:48:12 Reply

At 11/15/13 04:02 PM, Innermike wrote: And so your sig is fulfilled yet again. Speaking of sigs, I need to start a catalog of all my potential MSG post sigs.

One guy was just at a meeting, but he leaves tomorrow morning.

at least he didn't walk in on me singing naked in the lounge
egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Supporter
Level 05
Game Developer
Response to The Flash 'Reg' Lounge 2013-11-15 21:12:25 Reply

At 11/15/13 07:48 PM, MSGhero wrote:
at least he didn't walk in on me singing naked in the lounge

Pretty sure he'd be used to it at that point :P


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature