Post

Replies

Boosts

Views

Activity

Reply to Creating screen boundaries using GKObstacle
The solution in 2024, I believe, is to use a GKBehavior with a GKGoal(toStayOn:maxPredictionTime:) The following code will keep an agent within the bounds of a scene, where wh is the width/height of a square-shaped scene. Depending on your use case, you might need to adjust the weight and/or maxPredictionTime. let agent = GKAgent2D() let wh: Float = 2000.0 let bounds = [ SIMD2(x: -(wh*0.5), y: -(wh*0.5)), SIMD2(x: -(wh*0.5), y: (wh*0.5)), SIMD2(x: (wh*0.5), y: (wh*0.5)), SIMD2(x: (wh*0.5), y: -(wh*0.5)) ] let keepInBoundsGoal = GKGoal(toStayOn: GKPath(points: bounds, radius: wh*0.5, cyclical: true), maxPredictionTime: 160.0) let behavior = GKBehavior(goals: [keepInBoundsGoal]) behavior.setWeight(30.0, for: keepInBoundsGoal) agent.behavior = behavior
Topic: Graphics & Games SubTopic: General Tags:
May ’24
Reply to Using Game Center logo on website to indicate game's functionality
So, according to the "Guidelines For Using Apple Trademarks And Copyrights": Compatibility: Developers may use Apple, Macintosh, iMac, or any other Apple word mark (but not the Apple Logo or other Apple-owned graphic symbol/logo) in a referential phrase on packaging or promotional/advertising materials to describe that the third party product is compatible with the referenced Apple product or technology, provided they comply with the following requirements. a. The Apple word mark is not part of the product name. b. The Apple word mark is used in a referential phrase such as “runs on,” “for use with,” “for,” or “compatible with.” c. The Apple word mark appears less prominent than the product name. d. The product is in fact compatible with, or otherwise works with, the referenced Apple product. e. The reference to Apple does not create a sense of endorsement, sponsorship, or false association with Apple or Apple products or services. f. The use does not show Apple or its products in a false or derogatory light. I'm no lawyer, but it sounds like the answer to my question is "No, you may not use the Game Center logo -- you can only reference the functionality in writing". Am I reading it correctly, though? I have no idea, really. I've contacted Support, but I'd welcome more input here while I wait for a response.
Topic: Design SubTopic: General Tags:
Jan ’22
Reply to Creating screen boundaries using GKObstacle
The solution in 2024, I believe, is to use a GKBehavior with a GKGoal(toStayOn:maxPredictionTime:) The following code will keep an agent within the bounds of a scene, where wh is the width/height of a square-shaped scene. Depending on your use case, you might need to adjust the weight and/or maxPredictionTime. let agent = GKAgent2D() let wh: Float = 2000.0 let bounds = [ SIMD2(x: -(wh*0.5), y: -(wh*0.5)), SIMD2(x: -(wh*0.5), y: (wh*0.5)), SIMD2(x: (wh*0.5), y: (wh*0.5)), SIMD2(x: (wh*0.5), y: -(wh*0.5)) ] let keepInBoundsGoal = GKGoal(toStayOn: GKPath(points: bounds, radius: wh*0.5, cyclical: true), maxPredictionTime: 160.0) let behavior = GKBehavior(goals: [keepInBoundsGoal]) behavior.setWeight(30.0, for: keepInBoundsGoal) agent.behavior = behavior
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Using Game Center logo on website to indicate game's functionality
So, according to the "Guidelines For Using Apple Trademarks And Copyrights": Compatibility: Developers may use Apple, Macintosh, iMac, or any other Apple word mark (but not the Apple Logo or other Apple-owned graphic symbol/logo) in a referential phrase on packaging or promotional/advertising materials to describe that the third party product is compatible with the referenced Apple product or technology, provided they comply with the following requirements. a. The Apple word mark is not part of the product name. b. The Apple word mark is used in a referential phrase such as “runs on,” “for use with,” “for,” or “compatible with.” c. The Apple word mark appears less prominent than the product name. d. The product is in fact compatible with, or otherwise works with, the referenced Apple product. e. The reference to Apple does not create a sense of endorsement, sponsorship, or false association with Apple or Apple products or services. f. The use does not show Apple or its products in a false or derogatory light. I'm no lawyer, but it sounds like the answer to my question is "No, you may not use the Game Center logo -- you can only reference the functionality in writing". Am I reading it correctly, though? I have no idea, really. I've contacted Support, but I'd welcome more input here while I wait for a response.
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’22