Alfonso Crawford, the Slackerjack

  • Random
  • Archive
  • RSS
  • Ask
  • Submit
thdark:

Since tumblr refuses to upload the image to the correct size in the ask, here it is in all it’s glory.This was a little too much fun to make.
Pop-upView Separately

thdark:

Since tumblr refuses to upload the image to the correct size in the ask, here it is in all it’s glory.
This was a little too much fun to make.

    • #gaben
    • #hideo kojima
    • #pictures
    • #thdark
    • #gaming
    • #lol
    • #humor
    • #death battle
    • #follow up
  • 2 months ago > thdark
  • 741
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

I’m on page 385… working backwards…..

    • #personal
    • #slice of life
    • #follow up
  • 4 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

WHEN DID YOU LEARN TO QUEUE THINGS, BROTHER?

ARE YOU JUST IGNORING ME?

    • #slice of life
    • #follow up
  • 4 months ago
  • 2
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Got the file-writing bit done. Now I gotta—no, penis, later! Down boy!

Dicks; am I right, fellas?

Now I’ve got to do some thumbnails after I get back from the gym.

    • #blender
    • #programming
    • #todo
    • #follow up
    • #graphics
  • 7 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

You test my patience, dear.

    • #follow up
  • 8 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Good night~!

Here’s what I’ve got so far.

The Loader

def load(filename):
	ini_file = configparser.ConfigParser({'x':0, 'y':0, 'a':0})
	if not ini_file.read(filename): return

	try: name = ini_file.get('header', 'name')
	except (NoSectionError, NoOptionError): name = filename

	_FRAME_REPOSITORY[name] = ini_file

The Setter

def set(repo_name, num_str):
	if repo_name not in _FRAME_REPOSITORY: return
	rf = _FRAME_REPOSITORY[repo_name]

	self.clear()
	hb = 1
	while True:
		sect = num_str + '.' + str(hb)
		if not rf.has_section(sect): break
		hb += 1

		bpy.ops.object.add()
		box = bpy.context.active_object
		box.parent = self.origin
		box.select = False
		box.worldPosition = self.origin.worldPosition
		box.worldOrientation = self.origin.worldOrientation
		box.applyMovement((rf.getfloat(sect, 'x'),
		                   rf.getfloat(sect, 'y'),
		                   0), True)
		box.applyRotation((rf.getfloat(sect, 'a'), 0, 0), True)
		try:
			pass
			#box.dimensions[1] = rf.getfloat(sect, 'w')
			#box.dimensions[2] = rf.getfloat(sect, 'h')
		except NoOptionError:
			pass

Yeah; I mix tabs and spaces in multi-line statements. Wanna fight about it?

What’s Left

  • I’ve got to write a little something to allow for dimensions to be set: I’ll probably just hack the scale of the hitbox by leaving the depth at 1 (since this is for a 2D fighter) and using it as the base for multiplication or division or whatever the hell I gotta do to get the relative scale.
  • Set the rest of the hitbox-properties
  • load via os for multiplatform functionality
  • asd;fkldasfj;asogfhagfohaewrewragfr3eojirgfaefiroirgafert4kji

Dude, what?

I'm gettin' too black for this shit.

Fuck it, I'm out.

It’s beddy-bye time, bitches. I am out this piece.

    • #liveblogging
    • #programming
    • #python
    • #blender
    • #code
    • #game development
    • #game design
    • #games
    • #gaming
    • #linux
    • #windows
    • #collision
    • #data management
    • #pictures
    • #follow up
    • #todo
  • 9 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Got it!

I have to use applyMovement(), with the argument local set to True.

    • #follow up
  • 9 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Baby Black Box, Revisited

Man, this feels so good. I’ve been thinking that it was impossible to make and control logic bricks from within Python for a while, but now I’ve got it figured out:

def spawn(self):
	bpy.ops.object.add()
	bpy.ops.logic.sensor_add()
	bpy.ops.logic.controller_add(type="PYTHON")
	bpy.ops.logic.actuator_add()

	self.origin = bpy.context.active_object
	c = self.origin.game.controllers['Python']
	c.mode = 'MODULE'
	c.module = ''
	c.link(self.origin.game.sensors['Always'],
	       self.origin.game.actuators['Motion'])

This is what I’ve changed since my previous post on the matter, hence the title. Since logic bricks exist within an object-bound namespace, I can run this little number as many times as I want. The shortcut, ‘c’, is just to keep inline with the Official Python Style Guide without having a mass of multi-line statements; also, I figured it’d be slightly faster than having the system run through self, origin, game, then search an index of controllers.

    • #python
    • #programming
    • #code
    • #games
    • #gaming
    • #game design
    • #game development
    • #linux
    • #windows
    • #follow up
    • #collision
    • #physics
    • #blender
  • 10 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Hey

Steve is still here. Cool!
Who was that other guy, then?
Whatever. Fuck ‘im. 

    • #haiku
    • #poetry
    • #slice of life
    • #animals
    • #bugs
    • #follow up
    • #adult
  • 10 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

See Ya, Bro!

A sharp mind’s soft touch
A towel and a back door
A free man, named Steve 

    • #slice of life
    • #poetry
    • #animals
    • #bugs
    • #haiku
    • #follow up
  • 10 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
Page 1 of 3
← Newer • Older →

About

Avatar

Need help making games? websites? mafia hits? I'll help you do it more simply. There's a lot of nonsense out there in development, and I've got as little patience for it as you. My focus is, right now:

  • Blender / Python
  • HTML5 / JavaScript
  • PHP / Ancient Necromancy

On this site, you'll find a mix of detailed tutorials and quick tips to keep from losing nights to stupid hiccups. Along the way, I will spam fanart and digressions regarding modern survivalism, personal projects, and tales of my antagonizing the animal kingdom.

This blog is LGBT Friendly

WARNING: the author of this blog has an unhealthy interest in women, and it is periodically reflected in the content shared. Most of the sick displays will be safe for work.

Pages

  • An Important Sidenote
  • Fluffernutter Peanut-butter with a Slice of Cheese

Me, Elsewhere

  • @MadamLaunch on Twitter
  • My Skype Info
  • Linkedin Profile

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask
  • Submit
  • Mobile
Effector Theme by Pixel Union