kodecocodes / sktutils Goto Github PK
View Code? Open in Web Editor NEWSprite Kit helper classes and functions. From the book iOS Games by Tutorials.
License: MIT License
Sprite Kit helper classes and functions. From the book iOS Games by Tutorials.
License: MIT License
I haven't figured it out myself or I would create a PR, can we add keys to the methods in this class, for example I want to call a screenShakeWithNode
and assign a key so that I can cancel it later.
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 ;-)
It'd be really nice to be able to use SKTUtils without copying the whole project manually and keeping that up to date.
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
.
will there be any updates?
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?
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.
Hi,
This is more of an announcement than an issue. I made a ring chart library named SKTRings that builds upon the tools in SKTUtils. The rings animate using SKTEffects:
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!
Looks like by default Xcode 6 Objective-C projects do not include a pch file.
Building SKTTimingFunctions fails without importing Foundation.
@import Foundation;
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.