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
import maya.cmds as cmds | |
import maya.mel as mel | |
### Expression : python("Run("+frame+")"); ### | |
# GLOBAL VARIABLES | |
last_frame_number = 1 | |
framerate = 0 | |
global initialized | |
initialized = False |
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
# Cube Army Script for Maya | |
# Imports | |
import maya.cmds | |
# Parameters | |
rows = 10 | |
columns = 10 | |
spacing = 1 | |
soldier_height = 2 | |
# For every soldier in the army | |
for z_position in range(columns): |
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
#Joint Control Shape Script | |
import maya.cmds as cmds | |
#Declarations and stuff | |
selected_joint_list = 0 | |
name_stub = 0 | |
offset_name = "_offset" | |
#Get all selected joints | |
selected_joint_list = cmds.ls("jnt_*", sl=True) | |
#If no joints were selected then let the user know | |
if selected_joint_list == 0: |
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
#include "Enemy.h" | |
Enemy::Enemy(void) | |
{ | |
} | |
Enemy::~Enemy(void) | |
{ |
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
// Ball|Game class (named Ballie for some odd and unfathomable reason) | |
class Ballie | |
{ | |
private: | |
public: | |
//Variables: | |
int pos_x; | |
int pos_y; |
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
package | |
{ | |
import flash.display.Graphics; | |
import flash.display.Sprite; | |
/** | |
* Bullets probably need a home, this is their home! | |
* Currently only one type of ammo but with this class it's possible to add more if needed along with other kinds of munitions. | |
* On call it will take the gun's muzzle coordinates and set them as starting coords for the bullet. | |
* VARIABLE INFO: |
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
//Darts 301 | |
//Class version | |
#include <iostream> | |
#include <cstdlib> | |
#include <stdlib.h> | |
#include <string> | |
#include <time.h>z | |
#include <Windows.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
void Bull(int& score, const int& player_accuracy) | |
{ | |
// Player aims for 50 (bull) but there's a chance to miss and hit anything ranging from 1 to 20 if he does so. | |
int chance = (rand()%100)+1; | |
//State check | |
if (score == 50) | |
{ | |
if (chance <= player_accuracy) | |
{ |
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
package | |
{ | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.text.TextField; | |
import flash.geom.ColorTransform; | |
import flash.geom.Transform; | |
import flash.display.Shape; | |
import flash.events.MouseEvent; | |
import flash.events.KeyboardEvent; |
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
//Darts 301 | |
//Class version | |
#include <iostream> | |
#include <cstdlib> | |
#include <stdlib.h> | |
#include <string> | |
#include <time.h> | |
#include <Windows.h> |
NewerOlder