Oh, Apple.. What did you do!?
-=-=-
"Swift"
That's the name of the language.
"SWIFT"
As in Quick.
For n=1 to 10
I've been writing that since I was about 7 years old.
It's quick and easy, requiring only a couple of shift's, and making logical sense, flowing from left to right, reading in an almost plain-english way.
The "C-Way" isn't as neat.
For (n=0;n<10;n++) {
Needs more than a few shift's, and doesn't quite read the same way in my head.
It's also, either zero based, or wonky top-heavy based (n<11 !) which makes it not quite as easy to work with.
Can you tell I prefer BASIC!?
Oh, smeg off, Apple..
for n in (0...10) {
What!?!
What the heck is that, even?
"for n in naught dot dot dot ten"
Makes NO sense.. None at all.
And how is that "Swift"er than "n=1 to 10"?
And does it include the 10?
What's going on?
Why have they done that!?
That's HORRIBLE!!!
*vomits*
These are "Sprites". There's 1,000 onscreen, and the engine doesn't seem to care how small or large they are.
Today I need to tackle loading an image and splattering it onto the sprites, because.. Right now, they don't do that!!!
I'm going to have to look into how to do text. I imagine a bitmap font might be better, under the circumstances.
I think I've also resigned myself to the fact that I'm going to have to change the "GameScene.swift" file, so my new framework won't be quite as neat and tidy as I'd have liked. Stupid Apple...
ugh...
Still, at least I can count, now.
"Cartoon @Derek counts to ten on Sesame Street, muppets, Giant number 7" by #ArtFlow.ai
There's no number 7 in this picture. Booooooo!!!!