Be a Supporter!

The Flash 'Reg' Lounge

  • 1,926,247 Views
  • 64,472 Replies
New Topic Respond to this Topic
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-10-21 15:27:48 Reply

At 10/21/13 01:35 PM, Rustygames wrote: I would like to see some of your source code metal gear solid bamboo, just because I'm nosey :D

My doc class has public references to a bunch of manager classes which handle a certain aspect of the game (Item, Inventory, Fade, Quest, Assets). They all have a reference to the main class, so they have access to other manager's methods. None of them have common methods; the methods are literally what I need that class to do (inv.getItems, party.addMember), so in that regard it's a bit messy. I would have gone the extra effort to make them singletons, but I didn't feel like it.

just don't be an idiot by setting the reference to something else, that's my logic

The ChildManager uses overridden addChild to display things backwards. The fade layer should always be on top, even through states getting added and removed, and the dialogue layer under the fade, etc.

StateManager holds the current state and updates/renders that. The states implement an interface. Some states can be "suspended" rather than replaced if I don't want to completely exit it (the overworld persists when you open the menu rather than being replaced by it). Blah, blah, blah

It was all inspired by P telling me to group aspects of the game into a class that manages it.

I made something for handling queueing of animations, tweens, delays and function calls in Flash. You can have it if you want?

I'm comfortable with what I have now, but you can post it if you want.

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

At 10/21/13 01:01 PM, Rustygames wrote: So do you just spaghetti mess your code?

this is more accurate than you'd think ;)

knugen
knugen
  • Member since: Feb. 7, 2005
  • Offline.
Forum Stats
Member
Level 42
Programmer
Response to The Flash 'Reg' Lounge 2013-10-21 18:59:28 Reply

Sooo after 2.5 years or so away from Flash I'm finally getting back into it by picking up an old project :)

Flash might be dying or whatever, maybe my time would be better spent on learning something new, but dammit I'm not done with you yet!

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

At 10/21/13 06:59 PM, knugen wrote: Sooo after 2.5 years or so away from Flash I'm finally getting back into it by picking up an old project :)

a new-oldie? An old-newie?


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-10-22 01:59:04 Reply

after 10 PM I seem to completely melt down and lose the ability to basic maths.

Correct me if i'm wrong, but when
2(-7/6) + 9/2 - z = 1
z does not equal 292

got that answer, looked at the problem again, and went "wait, what?" - checked my math four times (the page is full of writing) and I come out with that answer every time.

If anyone's curious, i'm solving a system of equations. Yay.
2x + y - z = 1
x - 2y + z = -9
x - y - 2z = -8

figured x = -7/6 and y = 9/2
maybe i'm wrong with those, as well. Fuck it, i'm going to bed.


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

BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-10-22 08:49:43 Reply

At 10/22/13 01:59 AM, egg82 wrote: after 10 PM I seem to completely melt down and lose the ability to basic maths.

There's a linear algebra solver in as3 if you need it. I do my most creative coding after midnight, but I need to start going to sleep earlier...

Tree-SkyLark-BCE
Tree-SkyLark-BCE
  • Member since: Aug. 6, 2005
  • Offline.
Forum Stats
Member
Level 35
Programmer
Response to The Flash 'Reg' Lounge 2013-10-22 09:49:15 Reply

At 10/22/13 01:59 AM, egg82 wrote: If anyone's curious, i'm solving a system of equations. Yay.
2x + y - z = 1
x - 2y + z = -9
x - y - 2z = -8

In the words of a teacher I had years ago, "RREF that baby."

Solution with WolframAlpha


BBS Signature
OmarShehata
OmarShehata
  • Member since: Aug. 1, 2008
  • Offline.
Forum Stats
Moderator
Level 13
Game Developer
Response to The Flash 'Reg' Lounge 2013-10-23 13:22:13 Reply

You guys!

I need some help with haXe/nme/openFL. I'm trying to make a launcher for Concerned Joe, basically a neat little file you download or send to whomever, and it automatically checks for the latest version of the game and downloads it. If the game is already downloaded, it serves to check for if a new version exists as well as configuring launch settings for the game.

Since Love has some restrictions on filesystem and haXe looks like a very attractive option, I tried it out, and it works wonderfully, except it compiles with the assets outside the exe and a bunch of dll's around.

My question is, is it possible to somehow put everything inside one handy executable?

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

At 10/23/13 01:22 PM, 4urentertainment wrote: My question is, is it possible to somehow put everything inside one handy executable?

I've made a file downloader/launcher in AIR if you're looking for a really quick'n'dirty thing. You can get around the Adobe Installer for AIR stuff and make it a single executable if you want to, I made a post on that in the reg lounge a few pages back.

Otherwise just go with Visual Studio and your language of choice. Or IDe of choice. Eh, it's all the same - find a language, make a file, compile into executable, distribute fancy launcher thing. I could make one in C# if you want, i'm bored enough.


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

BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-10-23 13:58:38 Reply

At 10/23/13 01:22 PM, 4urentertainment wrote: My question is, is it possible to somehow put everything inside one handy executable?

@PSvils cuz I've only done openfl shenanigans, and even then only flash export has worked 100%.

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to The Flash 'Reg' Lounge 2013-10-23 14:44:31 Reply

At 10/22/13 01:59 AM, egg82 wrote: If anyone's curious, i'm solving a system of equations. Yay.
x - 2y + z = -9
x - y - 2z = -8
2x + y - z = 1

figured x = -7/6 and y = 9/2
maybe i'm wrong with those, as well. Fuck it, i'm going to bed.

no these are right. you got z right too, but i don't know why you calculated - (1 + 14/6 - 9/2) to be 292. it's 7/6 which is the right answer for z.

2(-7/6) + 9/2 - z = 1
-14/6 + 27/6 - z = 1
13/6 - z = 1
z = -1 + 13/6
z = 7/6

x - 2y + z = -9 (E1)
x - y - 2z = -8 (E2)
2x + y - z = 1 (E3)

y - 3z = 1 (E2') = (E2 - E1)
5y - 3z = 19 (E3') = (E3 - 2E1)

12z = 14 (E3'') = (E3' - 5E2')

z = 14/12 = 7/6

Now that we have z, go back to E2' to find y:
y - 3(7/6) = 1
y = 1 + 21/6 = 27/6 = 9/2

And with y and z go back to E1:
x - 2(9/2) + (7/6) = -9
x = -9 + 9 - 7/6
x = -7/6

so x = -7/6, y = 9/2, z = 7/6


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-10-23 15:33:47 Reply

making shit for this game is SO FUN amg http://www.youtube.com/watch?v=nmTC7sMIlL0

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

At 10/23/13 03:33 PM, Glaiel-Gamer wrote: making shit for this game is SO FUN amg http://www.youtube.com/watch?v=nmTC7sMIlL0

You've got so many more subs then me :P
Ah, well. Looks like some fun was had, there. How's progress?

At 10/23/13 02:44 PM, Toast wrote: no these are right. you got z right too, but i don't know why you calculated - (1 + 14/6 - 9/2) to be 292. it's 7/6 which is the right answer for z.

I think what happened was I attempted to clear out the fractions and did it completely wrong. I multiplied by the denominator and not the numerator. Welp, that'll learn me.


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-10-24 01:05:22 Reply

At 10/24/13 01:01 AM, egg82 wrote: You've got so many more subs then me :P

Speaking of, i'm kinda proud of my view graph at the moment. I mean, the views themselves are low but there is definitely a clear trend ^.^

The Flash 'Reg' Lounge


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-10-24 15:55:22 Reply

At 10/24/13 01:05 AM, egg82 wrote:
At 10/24/13 01:01 AM, egg82 wrote: You've got so many more subs then me :P
Speaking of, i'm kinda proud of my view graph at the moment. I mean, the views themselves are low but there is definitely a clear trend ^.^

What is this views of? Your website?


- 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-10-24 16:44:26 Reply

At 10/24/13 03:55 PM, Rustygames wrote: What is this views of? Your website?

no, YouTube channel. I try :P


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-10-24 17:19:23 Reply

At 10/24/13 04:44 PM, egg82 wrote:
At 10/24/13 03:55 PM, Rustygames wrote: What is this views of? Your website?
no, YouTube channel. I try :P

I haven't seen it yet, I better look!


- 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-10-24 17:27:38 Reply

At 10/24/13 05:19 PM, Rustygames wrote:
At 10/24/13 04:44 PM, egg82 wrote:
At 10/24/13 03:55 PM, Rustygames wrote: What is this views of? Your website?
no, YouTube channel. I try :P
I haven't seen it yet, I better look!

Apparently my youtube channel, with 0 content got 37k views before they stopped counting that stat. And then my games still get some views per day. But then there's 1-2 billion people with internet, so it's not too weird.

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to The Flash 'Reg' Lounge 2013-10-24 17:47:24 Reply

At 10/24/13 05:27 PM, MSGhero wrote:
At 10/24/13 05:19 PM, Rustygames wrote:
At 10/24/13 04:44 PM, egg82 wrote: there's 1-2 billion people with internet, so it's not too weird.

I believe they keep the official count on this web page


BBS Signature
Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to The Flash 'Reg' Lounge 2013-10-24 17:49:02 Reply

I mean here http://www.youtube.com/watch?v=9bZkp7q19f0


BBS Signature
egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Supporter
Level 05
Game Developer
Response to The Flash 'Reg' Lounge 2013-10-24 18:43:32 Reply

So it looks like 4ur's got me working on the Concerned Joe launcher. Not that I mind at all, the challenge is refreshing after almost a month of nothing but YouTube :P

One thing I learned is there's no updated Twitter API for AS3, nor is there an OAuth API for Twitter's system. The only borrowed code in the launcher so far is AS3-Signals (because i'm too lazy to use events) - i'm quite proud of myself for remembering all of this xD


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

BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to The Flash 'Reg' Lounge 2013-10-26 09:30:28 Reply

I really hate this Unity bullshit but I'm getting there, slowly, I probably could have gotten into this years ago if there was a simple template for programmers instead of assuming everybody is a designer that doesn't know how to write code.


nobody

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to The Flash 'Reg' Lounge 2013-10-26 10:34:45 Reply

Also, @4urentertainment is Joe going to launch same day on all platforms? And are you going through the Mac App Store/Steam or just through your website? Also why don't I have you on Skype?


nobody

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

@InnerMike @VoidForce what are A levels? Is that like high school (age 13/14-17/18) or something else? I found a really cool research opportunity in Switzerland, and it wants me to list my education starting at A levels.

I also need 2 letters of recommendation, but I have no clue who would write those since I don't really know any profs...

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to The Flash 'Reg' Lounge 2013-10-26 17:27:55 Reply

At 10/26/13 03:51 PM, MSGhero wrote: @InnerMike @VoidForce what are A levels? Is that like high school (age 13/14-17/18) or something else? I found a really cool research opportunity in Switzerland, and it wants me to list my education starting at A levels.

I also need 2 letters of recommendation, but I have no clue who would write those since I don't really know any profs...

Last two years of high-school, though the way our systems work is so different it's a little hard to convert, from what I understand you can take AP classes in specific subjects but you still need credits in all areas? We pick 3~5 of our strongest subjects and just fully concentrate on those for the last two years and present our school results not as a GPA but individual grades like "ABBc" lower case being anything you only did for one year.


nobody

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2013-10-26 17:46:32 Reply

At 10/26/13 05:27 PM, Innermike wrote: Last two years of high-school, though the way our systems work is so different it's a little hard to convert, from what I understand you can take AP classes in specific subjects but you still need credits in all areas? We pick 3~5 of our strongest subjects and just fully concentrate on those for the last two years and present our school results not as a GPA but individual grades like "ABBc" lower case being anything you only did for one year.

Yeah we have to take mostly all areas each year. 2 years of no history or geography or other boring stuff sounds delightful.

PSvils
PSvils
  • Member since: Feb. 3, 2010
  • Offline.
Forum Stats
Member
Level 01
Game Developer
Response to The Flash 'Reg' Lounge 2013-10-27 04:56:19 Reply

Programming a game in C# with a friend. We've had uber productive 3 days working on it so far. Base engine is coming along, already starting on a few game level features while sorting out a few bugs here and there.

But speaking of which, Egg82, in C#, how am I supposed to get a reasonably precise delta across frames? Currently, the gameloop is executing in less than a millisecond, and DateTime is shit. Now using Stopwatch, but systems that are based on the delta are still jittery, and I made a hackish "minimum" delta, where if the delta is lower than an amount, I make it that amount...what do you use in your engine?

P.

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

At 10/27/13 04:56 AM, PSvils wrote: But speaking of which, Egg82, in C#, how am I supposed to get a reasonably precise delta across frames? Currently, the gameloop is executing in less than a millisecond, and DateTime is shit. Now using Stopwatch, but systems that are based on the delta are still jittery, and I made a hackish "minimum" delta, where if the delta is lower than an amount, I make it that amount...what do you use in your engine?

I used MonoGame's (XNA's) deltaTime variable on occasions, but for the most part I never had to touch any of that. I just had a public variable with framerate and said in the update loop "if framerate < 0 then set static frame time to false, else if framerate == 0 return, else set frame time to 1 / framerate" (also "if framrate == 0 return" in the draw loop)


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

BBS Signature
TheNavigat
TheNavigat
  • Member since: Mar. 2, 2013
  • Offline.
Forum Stats
Member
Level 04
Programmer
Response to The Flash 'Reg' Lounge 2013-10-28 15:12:34 Reply

At 10/24/13 06:43 PM, egg82 wrote: So it looks like 4ur's got me working on the Concerned Joe launcher. Not that I mind at all, the challenge is refreshing after almost a month of nothing but YouTube :P

Dude, AIR support on Ubuntu's awful... Can't you think of any other solution? I'm trying to think of any, but Visual Studio means no native support for Ubuntu, requests Wine. PythonGTK is nice but I can't be sure if all the users will have Python installed. C++ with Windows API (and other implementations for other operating systems) is perfect, specially that it won't need much time since it's just a launcher, but the fact that you need multiple implementations means that it's relatively hard.


Nav.. I'm the Nav!