Hi Shilo
Ive been struggling with objective c and Xcode for over three years now still haven't finished my first game although trying to produce a game with production values as high as bejewelled and doing all the artwork myself hasn't helped either π
Ive been drooling over Swifts clean common sense syntax since its announcement, fed up with the excessively complicated way objective c handles strings and arrays and constants and having to constantly switch between header and implementation files, not too mention how messy it makes my filing system, simply scanning to find the correct file to work on amongst all those header files has probably cost over a week in the grand scheme of things.
I just hope Im not cutting off a significant number of potential users by only supporting iOS 7.0 and higher, as much as I would like to show solidarity with my fellow flat design haters I don't think my brain can handle the extra work π
I Changed the name of the project by clicking the barebone project in the project navigator it asked to change some projects settings names and I clicked yes, they may have addressed the objective c language with Swift, but sadly Xcode is still a jambled hacky mess π
I haven't as yet written a single line of swift code but have done some reading and as I understand it you need to start any method which you are overriding with the override keyword, but I don't know why Daniel hadn't used it, it obviously compiled OK for him before he released it, so Im assuming Ive done something wrong when renaming the project or something. The error I got is a follows.
Overriding declaration requires an 'override' keyword
for the following code
import Foundation
class Game : SPSprite {
init() {
super.init()
var quad = SPQuad(width: 100, height: 100, color: SPColorRed)
quad.x = 50
quad.y = 50
addChild(quad)
}
}
//corrected it reads
class Game : SPSprite {
override init() {
super.init()
var quad = SPQuad(width: 100, height: 100, color: SPColorRed)
quad.x = 50
quad.y = 50
addChild(quad)
}
}
I would just like to also thank Daniel Robert and your good self for all the hard work you all have done and continue to contribute to Sparrow. Its an awesome framework far cleaner and intuitive than its rivals and when I final get my first game out there, I will do all I can to help promote this brilliant framework π