stroughtonsmith,
@stroughtonsmith@mastodon.social avatar

One of the big worries I had with Swift from the very start was how long it would take me to get back to building cross-platform apps and games if I adopted it.

Well, we're here, ten years later. Swift is robust, portable, and with C++ support easily handles Windows, the Windows App Platform, and now game dev through the magnificent work of @Migueldeicaza and SwiftGodot. I can build a game in Xcode and Godot that deploys to Windows, Linux and Android using Swift, and that's pretty f-ing cool

Little demo project, built with Swift and Godot, running on Windows 11. A character moves in 2D, a sprite sheet updates based on that movement, and there’s a text label that shows the Swift source file that its compiled from

Hexagonal,
@Hexagonal@mastodon.social avatar

@stroughtonsmith There is Swift support for the Playdate too.

https://github.com/finnvoor/PlaydateKit

stroughtonsmith,
@stroughtonsmith@mastodon.social avatar

(And here's what it looks like in Xcode)

stroughtonsmith,
@stroughtonsmith@mastodon.social avatar

On to some simple 3D

video/mp4

stroughtonsmith,
@stroughtonsmith@mastodon.social avatar

2D menus and scene loading.

It's amazing how much just works without fuss. I can look up Godot's C# docs and just reinterpret it in Swift very easily

video/mp4

stroughtonsmith,
@stroughtonsmith@mastodon.social avatar

I have a lot of old Unity projects that I’d kinda love to bring up on Godot using Swift, like my little Ludum Dare entry from a decade ago. I’ll thread it all here so you can keep track as I figure out how Godot works

https://youtu.be/1o0pNWgllqQ

takeitev,
@takeitev@mastodon.social avatar

@stroughtonsmith looking forward to see what you come up with . Godot is quite amazing, but I’m not sure if there’s a swift scripted language version

Migueldeicaza,
@Migueldeicaza@mastodon.social avatar

@stroughtonsmith I inject the Godot documentation into Swift and remap references so they are properly referenced and publish the result using DocC.

I just need to get Google to scan it for better results (I have submitted the site map, but it scans like a page a day)

dgregor79,
@dgregor79@sfba.social avatar

@Migueldeicaza @stroughtonsmith This documentation does appear on the Swift Package Indez, though, unless you’re talking about something else: https://swiftpackageindex.com/migueldeicaza/SwiftGodot/0.41.0/documentation/swiftgodot

Migueldeicaza,
@Migueldeicaza@mastodon.social avatar

@dgregor79 @stroughtonsmith my website isn’t getting indexed the one I link

Migueldeicaza,
@Migueldeicaza@mastodon.social avatar

@dgregor79 @stroughtonsmith when you google “SomeGodotType swift” nothing comes up. So I am trying to get Google to index these pages.

But just searching on the published site works too.

finestructure,
@finestructure@mastodon.social avatar

@Migueldeicaza @dgregor79 @stroughtonsmith We’re aware of Google having problems indexing the published docs on @SwiftPackageIndex . We’ve been working on some fixes which should go live soon, hopefully fixing that!

Tracking issue: https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/2797

Migueldeicaza,
@Migueldeicaza@mastodon.social avatar

@dgregor79 @stroughtonsmith I do owe you a blog post; As soon as I am back from vacation!

stroughtonsmith,
@stroughtonsmith@mastodon.social avatar

@Migueldeicaza I do just google Godot docs, since I don’t know how their APIs work at all (first timer here). If I can’t command-click my way to a header in Xcode, I don’t use built-in docs much. I did watch your presentation though!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • thenastyranch
  • cisconetworking
  • JUstTest
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines