Permalink
Browse files

Moved grapelib submodule, added minimalcomps

  • Loading branch information...
1 parent b9bcc1b commit 7ddeddf66cf78e446eea2ac08372891e46659273 @grapefrukt committed May 10, 2012
View
@@ -1,3 +1,6 @@
-[submodule "lib"]
- path = lib
- url = git@github.com:grapefrukt/grapelib.git
+[submodule "grapelib"]
+ path = grapelib
+ url = https://grapefrukt@github.com/grapefrukt/grapelib.git
+[submodule "minimalcomps"]
+ path = minimalcomps
+ url = https://github.com/minimalcomps/minimalcomps
View
File renamed without changes.
Submodule minimalcomps added at ea455e
@@ -23,7 +23,7 @@ package com.grapefrukt.games.juicy {
static public var EFFECT_BLOCK_DARKEN:Boolean = true;
static public var EFFECT_BALL_STRETCH:Boolean = true;
- static public var EFFECT_BALL_DRAW_TRAILS:Boolean = true;
+ static public var EFFECT_BALL_DRAW_TRAILS:Boolean = false;
static public const BALL_MAX_VELOCITY:Number = 5;
static public const BALL_MIN_VELOCITY:Number = 4;
@@ -13,7 +13,7 @@
*/
public class Rainbow extends Shape {
- private var maxLen :Number = 8;
+ private var maxLen :Number = 50;
private var _segments :Vector.<Segment>;
private var _colorCount :uint = 1;
@@ -20,9 +20,6 @@ package com.grapefrukt.games.juicy.gameobjects {
this.x = x;
this.y = y;
- _trail = new Rainbow(1);
- addChild(_trail);
-
_gfx = new Shape;
_gfx.graphics.beginFill(0x4ecdc4);
_gfx.graphics.drawRect( -SIZE / 2, -SIZE / 2, SIZE, SIZE);
@@ -31,6 +28,9 @@ package com.grapefrukt.games.juicy.gameobjects {
var v:Point = Point.polar(5, Math.random() * Math.PI * 2);
velocityX = v.x;
velocityY = v.y;
+
+ _trail = new Rainbow(1);
+ addChild(_trail);
}
override public function update(timeDelta:Number = 1):void {

0 comments on commit 7ddeddf

Please sign in to comment.