This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
# flixel (the script) is based on Adam Atomic's 'flx.py' script for | |
# creating various flixel-related objects in a fresh Flex Builder project. | |
# flixel (the script) changes the python path to be appropriate for Mac OS, | |
# generates any needed directories on its own behalf, | |
# relies on an environment variable (FLIXEL_HOME/lib) to locate flixel's org/... | |
# directory, and generates a Makefile for use with mxmlc. this behavior can be | |
# turned off by flipping flexBuilder back to true. it assumes mxmlc is in PATH. | |
# flixel (the script) also supports a three-argument version like so: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SpriteLayer.h | |
// | |
// Created by Joseph C Osborn on 2011.01.12. | |
// Copyright 2011 Universal Happy-Maker. All rights reserved. | |
// This code is made available under the 3-clause BSD license: | |
// http://www.opensource.org/licenses/BSD-3-Clause | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The MIT License | |
* | |
* Copyright (c) 2011 Paul Solt, [email protected] | |
* Modifications Copyright (c) 2011 Joe Osborn, [email protected] | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Example taken from Decision Modeling and Optimization in Game Design, Part 5. | |
% http://intelligenceengine.blogspot.com/2013/08/decision-modeling-and-optimization-in.html | |
% To run (assuming this text is a file on your computer somewhere!): | |
% 1. First, download clingo (http://sourceforge.net/projects/potassco/files/clingo/3.0.5/). | |
% 2. Next, put clingo in your PATH somewhere and... | |
% 3. clingo -n 0 dmogd5.lp | |
% You should get a list of has_spell and has_perk facts representing the (only possible) assignment! | |
% The -n 0 means "emit all of the possible models", rather than the default of 1 model; | |
% in this particular case, there's only one model anyway. |