iOS
3 posts
(SpriteKit) 테트리스 게임 만들기로 알아본 SpriteKit

🎮 SpriteKit 특징 The SpriteKit framework makes it easy to create high-performance, battery-efficient 2D games. With support for custom OpenGL ES shaders and lighting, integration with SceneKit, and advanced new physics effects and animations, you can add force fields, detect collisions, and generate new lighting effects in your games. lower-level 2D 애니메이션을 위해 디자인 OpenGL과 같은 graphics API를 필요로 하지 않음 SceneKit와 함께 사용해 배경이나 전경의 오버레이로 활용 가능 🧩 SpriteKit 구성요소 SKView SpriteKit의 기본 뷰 각 장면 컨텐츠를 렌더링하여 표시하는…

March 19, 2023
iOS
(Xcode) 사라진 info.plist 파일을 찾아서

☠️ 오류 내용 2023-03-12 19:30:15.653050+0900 TetrisGame[8542:367066] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named “(no name)“) Info.plist 파일에 UIScene 구성 사전이 없다는 내용이다. 디렉토리를 살펴봤더니 다음과 같이 Info.plist 파일이 모두 사라져 있었다. 검색해본 결과 Xcode13부터 신규 프로젝트 생성 시 info.plist파일이 프로젝트 내부로 들어가 디렉토리 상에서 찾을 수 없다고 하였다. 🔎 해결방법 다음과 같이 PROJECT -> TARGETS -> Info 로 접근 Key에 **‘App Transport Security’**를 추가하고 하위에 **‘Allow Arbitrary Loads’**를 추가한 다음, Value를 **…

March 12, 2023
iOS
CGPoint, CGSize, CGRect

🧠 Why? iOS에서 View를 그리기 위해선 다음과 같은 것들이 필요하다. View의 시작 위치를 알기위한 x,y 좌표 (이 좌표는 iOS 뷰 기준점인 **왼쪽 꼭대기 (0,0)**으로부터 시작) 시작지점부터 어느 크기만큼 그릴 건지에 대한 width, height CGPoint A structure that contains a point in a two-dimensional coordinate system 2차원 좌표계의 점을 포함하는 구조체 다음과 같이 CGFloat 타입의 x, y 값을 가지는 구조체이다. ✨ 따라서 View의 위치를 나타낼 때 CGPoint를 사용한다. 그러나 꼭 View의 위치를 나타낼 때만 쓰는 것이 아니라 x, y 를 나타내야 할 때 언제든 사용 가능하다. CGSize A structure that contains width and height values 너비와 높이 값을 포함하는 구조체 사각형을 의미하는 것이 아님 다음과 같이 CGFl…

February 24, 2023
iOS