@ChevyRay awesoooooooooooome Suzy is mega adorbs (Today)

@ChevyRay did you get a PUPPY? :O (Today)

@Dan_Adelman yay free TSA massage (Today)

@jacobalbano Haha yeah I saw someone mention it and at first I thought they were talking about my barely functional broken UI stuff in Otter (Today)

Whoa what there's a GUI library for C++ called OtterUI? t.co/GdZRAZv6UZ I thought I had the only Otter named thing! :O (Today)

@championchap Are you talking about using a string instead of an enum for the keycode? SFML used enums for keys so that's what I did, is all (Yesterday)

@championchap Yooo feel free to hit me up at hi@kpulv.com if it seems like 140 characters isnt going to cover it (Yesterday)

RT @ChevyRay: Month #1 of my Patreon is coming around! t.co/g4MNyxcnGd My lovely supporters will get some art, concepts, and 3 game … (Yesterday)

@hexxxappeal @djcoreynolan @gabetelepak @garythellama @igdaphx @EndgameBar phoenix! (2 days ago)

@rustym FrankerZ (2 days ago)

RT @fucrate: only the very dumbest shit amuses me anymore t.co/PTydXaqCkW (3 days ago)

@kinifi Hmmm very slowly. Hard not to feel overwhelmed by all the stuff I have to do, and it's all stuff I've never done before! (3 days ago)

@kinifi Ohh going okay but haven't gotten shit done this week x_x (3 days ago)

@NoelFB noel facebook (4 days ago)

@infinite_ammo Hey you MAKE CAKES? I HAVE AN IDEA FOR A CAKE CAN YOU MAKE ME A BUNCH OF FREE CAKES (5 days ago)

@jacobalbano @MrWillHuxtable Oh I'm dumb they're just renamed (5 days ago)

@jacobalbano @MrWillHuxtable Whoa this has changed a lot. No more glide and glidemanager classes? :O (5 days ago)

@gabetelepak @JUEGOSRANCHEROS @SteveSwink @garythellama @djcoreynolan yeah our igda has been nothing but indies for years now (5 days ago)

@isabelboyd ahhh <3 I wish I was near any aquarium that had something going on, but alas I am in the desert. (6 days ago)

@infinite_ammo at least they all stayed outside when I was there :I (7 days ago)

follow
search
posts tagged with: tools

2013 - 2 - 5 / 7:16 am / tools

Asset Class Generator for Actionscript 3

Asset Class Generator for Actionscript 3

The Reason
As I set forth to try and jam out the rest of this metroidvania game before GDC 2013, I've been trying to think of ways to make content generation as fast as possible. One of the big hurdles that I run into with AS3 when making a lot of content is constantly having to embed assets into the code. FlashDevelop makes this incredibly easy though. Right click a file, click generate embed, and there you go. However this still takes a lot of time when I'm talking about a game that is going to have nearly a hundred level files and who knows how many image assets, and I'm constantly switching assets around.

After a quick consultation with Twitter I got a crash course on Python and spent a couple hours making assetGenerator.py.

Download!
Download assetGenerator.py 1.0, along with an example project right here. You can also just view the code. All the files in the example project are blank files just to use as an example, and keep the download size tiny. Here's an example of the code it spits out. If you want to know more, then read the rest of the post! read more

5 Comments

about

About

Hi there, my name is Kyle, and I'm a 27 year old kid with adult powers. I'm making video games and living the indie game developer life in Tempe, Arizona. Here you will find my thoughts, games, websites, doodles, and other stuff like that. I worked on Snapshot, Offspring Fling, and a whole bunch of other games. I also created and maintain Otter, a 2d game making framework. If you want to get a hold of me use the form on the bottom of the page, leave a comment, or just tweet at me. I try to post three times a week. Thanks for stoppin' by! You're the coolest.

facebook

videos

Do you want to make a Let's Play of one of my games, or a just a video featuring footage of my games? You have my full permission to do so! Even if you are monetizing your videos, you still have my full permission to use any footage from any of my games. Go for it!

contact

Your message has been sent! Thanks :)
SEND MESSAGE