Giter VIP home page Giter VIP logo

sktutils's Issues

Naming conflicts (due to public extensions)

I know this may be not the right place for this. So I'm sorry for posting this here, but don't know were else I should put this.

In a pod I'm using, there is a CGFloat+Extensions.swift which I think comes from somewhere here (at least from RW, as it has your Razeware header comment in it).
My problem is that, because those extensions are public, I get naming conflicts e.g. when using them in multiple modules (pods, or even my own).
So I was just wondering, why you declared them public, and don't just stick to the internal default? This is really annoying :-/ Or am I seeing this wrong?
Anyway as these Extensions are just copied around, there is probably no way to stop this ;-)

CocoaPods support

It'd be really nice to be able to use SKTUtils without copying the whole project manually and keeping that up to date.

The Swift version of SKTUtils gives many compilation errors on OS X

For some reason, the compiler on OS X is more strict about its types. On iOS this works fine:

extension CGPoint {
  init(angle: Float) {
    return self.init(x: cosf(angle), y: sinf(angle))
  }

But on OS X it needs to be written as:

extension CGPoint {
  init(angle: Float) {
    return self.init(x: CGFloat(cosf(CFloat(angle))), y: CGFloat(sinf(CFloat(angle))))
  }

Maybe this is a different build setting, maybe it's a compiler feature/bug. Let's wait until we get a new beta.

Maybe we should also use CGFloat in the API instead of Swift's own Float.

Demo: Balls don't always collide with screen borders

It feels like this might be a SpriteKit issue of some sort but when I run the demo app on iOS10 iPhone 6s Simulator the balls sometimes just wonder off the screen.

Does anyone want to have a look at this and send a PR if they find a fix?

RubyMotion version

Hi !

This is not an issue. I didn't know where else to contact you to tell you that I've translated SKTUtils and the demo to RubyMotion. Let me know if you're interested in adding a RM branch. SKTUtils are awesome, thanks a lot.

Best,

Bruno.

Could not found file xxx.caf

When I play a background music named xxx.caf, it shows that file cannot be found, playSoundEffect method didn't works too. Why? Because the file size is bigger? Any help will be great appreciated!

Support for SKAction.speed ?

I'm changing the SKAction.speed property on some of my SKMoveEffect actions, but nothing is happening. Is there some additional passthru functionality I need to implement in your SKAction extension?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.