Commit a88a85e6 authored by Adam Barth's avatar Adam Barth

Rename skysprites to flutter_sprites

parent 090c3707
...@@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; ...@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter_sprites/skysprites.dart'; import 'package:flutter_sprites/flutter_sprites.dart';
AssetBundle _initBundle() { AssetBundle _initBundle() {
if (rootBundle != null) if (rootBundle != null)
......
...@@ -5,7 +5,7 @@ import 'dart:math' as math; ...@@ -5,7 +5,7 @@ import 'dart:math' as math;
import 'dart:ui' as ui; import 'dart:ui' as ui;
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter_sprites/skysprites.dart'; import 'package:flutter_sprites/flutter_sprites.dart';
import 'package:vector_math/vector_math_64.dart'; import 'package:vector_math/vector_math_64.dart';
part 'custom_actions.dart'; part 'custom_actions.dart';
......
...@@ -8,7 +8,7 @@ import 'package:flutter/material.dart'; ...@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/painting.dart'; import 'package:flutter/painting.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_sprites/skysprites.dart'; import 'package:flutter_sprites/flutter_sprites.dart';
import 'game_demo.dart'; import 'game_demo.dart';
......
...@@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; ...@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter_sprites/skysprites.dart'; import 'package:flutter_sprites/flutter_sprites.dart';
AssetBundle _initBundle() { AssetBundle _initBundle() {
if (rootBundle != null) if (rootBundle != null)
......
...@@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; ...@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter_sprites/skysprites.dart'; import 'package:flutter_sprites/flutter_sprites.dart';
AssetBundle _initBundle() { AssetBundle _initBundle() {
if (rootBundle != null) if (rootBundle != null)
......
...@@ -5,7 +5,7 @@ import 'package:flutter/material.dart'; ...@@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter_sprites/skysprites.dart'; import 'package:flutter_sprites/flutter_sprites.dart';
AssetBundle _initBundle() { AssetBundle _initBundle() {
if (rootBundle != null) if (rootBundle != null)
......
...@@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; ...@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter_sprites/skysprites.dart'; import 'package:flutter_sprites/flutter_sprites.dart';
AssetBundle _initBundle() { AssetBundle _initBundle() {
if (rootBundle != null) if (rootBundle != null)
......
# skysprites # Flutter Sprites
A sprite toolkit built on top of Flutter. A sprite toolkit built on top of Flutter.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
library skysprites; library flutter_sprites;
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
...@@ -20,29 +20,29 @@ import 'package:flutter/services.dart'; ...@@ -20,29 +20,29 @@ import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:vector_math/vector_math_64.dart'; import 'package:vector_math/vector_math_64.dart';
part 'action.dart'; part 'src/action.dart';
part 'action_spline.dart'; part 'src/action_spline.dart';
part 'color_secuence.dart'; part 'src/color_secuence.dart';
part 'constraint.dart'; part 'src/constraint.dart';
part 'effect_line.dart'; part 'src/effect_line.dart';
part 'image_map.dart'; part 'src/image_map.dart';
part 'label.dart'; part 'src/label.dart';
part 'layer.dart'; part 'src/layer.dart';
part 'node.dart'; part 'src/node.dart';
part 'node3d.dart'; part 'src/node3d.dart';
part 'node_with_size.dart'; part 'src/node_with_size.dart';
part 'particle_system.dart'; part 'src/particle_system.dart';
part 'physics_body.dart'; part 'src/physics_body.dart';
part 'physics_joint.dart'; part 'src/physics_joint.dart';
part 'physics_node.dart'; part 'src/physics_node.dart';
part 'physics_shape.dart'; part 'src/physics_shape.dart';
part 'sound.dart'; part 'src/sound.dart';
part 'sound_manager.dart'; part 'src/sound_manager.dart';
part 'sprite.dart'; part 'src/sprite.dart';
part 'spritesheet.dart'; part 'src/spritesheet.dart';
part 'sprite_box.dart'; part 'src/sprite_box.dart';
part 'sprite_widget.dart'; part 'src/sprite_widget.dart';
part 'texture.dart'; part 'src/texture.dart';
part 'textured_line.dart'; part 'src/textured_line.dart';
part 'util.dart'; part 'src/util.dart';
part 'virtual_joystick.dart'; part 'src/virtual_joystick.dart';
part of skysprites; part of flutter_sprites;
typedef void ActionCallback(); typedef void ActionCallback();
......
part of skysprites; part of flutter_sprites;
Point _cardinalSplineAt(Point p0, Point p1, Point p2, Point p3, double tension, double t) { Point _cardinalSplineAt(Point p0, Point p1, Point p2, Point p3, double tension, double t) {
double t2 = t * t; double t2 = t * t;
......
part of skysprites; part of flutter_sprites;
/// A sequence of colors representing a gradient or a color transition over /// A sequence of colors representing a gradient or a color transition over
/// time. The sequence is represented by a list of [colors] and a list of /// time. The sequence is represented by a list of [colors] and a list of
......
part of skysprites; part of flutter_sprites;
/// A constraint limits or otherwise controls a [Node]'s properties, such as /// A constraint limits or otherwise controls a [Node]'s properties, such as
/// position or rotation. Add a list of constraints by setting the [Node]'s /// position or rotation. Add a list of constraints by setting the [Node]'s
......
part of skysprites; part of flutter_sprites;
enum EffectLineWidthMode { enum EffectLineWidthMode {
linear, linear,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
part of skysprites; part of flutter_sprites;
class ImageMap { class ImageMap {
ImageMap(AssetBundle bundle) : _bundle = bundle; ImageMap(AssetBundle bundle) : _bundle = bundle;
......
part of skysprites; part of flutter_sprites;
/// Labels are used to display a string of text in a the node tree. To align /// Labels are used to display a string of text in a the node tree. To align
/// the label, the textAlign property of the [TextStyle] can be set. /// the label, the textAlign property of the [TextStyle] can be set.
......
part of skysprites; part of flutter_sprites;
/// A [Node] that provides an intermediate rendering surface in the sprite /// A [Node] that provides an intermediate rendering surface in the sprite
/// rendering tree. A [Layer] can be used to change the opacity, color, or to /// rendering tree. A [Layer] can be used to change the opacity, color, or to
......
part of skysprites; part of flutter_sprites;
double convertDegrees2Radians(double degrees) => degrees * math.PI/180.8; double convertDegrees2Radians(double degrees) => degrees * math.PI/180.8;
......
part of skysprites; part of flutter_sprites;
/// An node that transforms its children using a 3D perspective projection. This /// An node that transforms its children using a 3D perspective projection. This
/// node type can be used to create 3D flips and other similar effects. /// node type can be used to create 3D flips and other similar effects.
......
part of skysprites; part of flutter_sprites;
/// The super class of any [Node] that has a size. /// The super class of any [Node] that has a size.
/// ///
......
part of skysprites; part of flutter_sprites;
class _Particle { class _Particle {
Vector2 pos; Vector2 pos;
......
part of skysprites; part of flutter_sprites;
enum PhysicsBodyType { enum PhysicsBodyType {
static, static,
......
part of skysprites; part of flutter_sprites;
typedef void PhysicsJointBreakCallback(PhysicsJoint joint); typedef void PhysicsJointBreakCallback(PhysicsJoint joint);
......
part of skysprites; part of flutter_sprites;
enum PhysicsContactType { enum PhysicsContactType {
preSolve, preSolve,
......
part of skysprites; part of flutter_sprites;
abstract class PhysicsShape { abstract class PhysicsShape {
......
part of skysprites; part of flutter_sprites;
// TODO: The sound effects should probably use Android's SoundPool instead of // TODO: The sound effects should probably use Android's SoundPool instead of
// MediaPlayer as it is more efficient and flexible for playing back sound effects // MediaPlayer as it is more efficient and flexible for playing back sound effects
......
part of skysprites; part of flutter_sprites;
enum SoundFadeMode { enum SoundFadeMode {
crossFade, crossFade,
......
part of skysprites; part of flutter_sprites;
/// A Sprite is a [Node] that renders a bitmap image to the screen. /// A Sprite is a [Node] that renders a bitmap image to the screen.
class Sprite extends NodeWithSize with SpritePaint { class Sprite extends NodeWithSize with SpritePaint {
......
part of skysprites; part of flutter_sprites;
/// Options for setting up a [SpriteBox]. /// Options for setting up a [SpriteBox].
/// ///
......
part of skysprites; part of flutter_sprites;
/// A widget that uses a [SpriteBox] to render a sprite node tree to the screen. /// A widget that uses a [SpriteBox] to render a sprite node tree to the screen.
class SpriteWidget extends OneChildRenderObjectWidget { class SpriteWidget extends OneChildRenderObjectWidget {
......
part of skysprites; part of flutter_sprites;
/// A sprite sheet packs a number of smaller images into a single large image. /// A sprite sheet packs a number of smaller images into a single large image.
/// ///
......
part of skysprites; part of flutter_sprites;
/// A texture represents a rectangular area of an image and is typically used to draw a sprite to the screen. /// A texture represents a rectangular area of an image and is typically used to draw a sprite to the screen.
/// ///
......
part of skysprites; part of flutter_sprites;
class TexturedLine extends Node { class TexturedLine extends Node {
TexturedLine(List<Point> points, List<Color> colors, List<double> widths, [Texture texture, List<double> textureStops]) { TexturedLine(List<Point> points, List<Color> colors, List<double> widths, [Texture texture, List<double> textureStops]) {
......
part of skysprites; part of flutter_sprites;
math.Random _random = new math.Random(); math.Random _random = new math.Random();
......
part of skysprites; part of flutter_sprites;
class VirtualJoystick extends NodeWithSize { class VirtualJoystick extends NodeWithSize {
VirtualJoystick() : super(new Size(160.0, 160.0)) { VirtualJoystick() : super(new Size(160.0, 160.0)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment