DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Bringing a game from PC to iOS

Bringing a game from PC to iOS

David Amador user avatar by
David Amador
·
Apr. 22, 11 · Mobile Zone · News
Like (0)
Save
Tweet
1.79K Views

Join the DZone community and get the full member experience.

Join For Free

this is my first post to http://idevblogaday.com/ , i’ve been waiting since november so i’m pretty excited about writing to a broader audience =p. even though i only have one product on the app store i have gathered some knowledge on how stuff works to get there.

i’ll start by talking a bit about how we made our pc game vizati to iphone.

when we started, this represented our chance of making games and putting ourselves into test. without any pre determined rules and/or a major company dictating what to do we were able to have full creative control to try and do something a bit different.

vizati is a casual puzzle game with a story as a background. the game is now available for windows, mac, iphone, ipad and windows phone 7. developed by only two people, it thankfully received several good reviews.

launching for windows

we started out building for windows and xbox360 because it was a very well known platform for us; we had tools and knowledge from other games so it felt right.

we launched the game on june 6 th; and got some very positive reviews, being its freshness, graphics and music the most acclaimed features.

right away we started making plans for bringing the game to ios devices, iphone, ipad etc. the mobile devices felt like a great platform for such a game.

first speed bump

for the pc we had built the game engine using xna framework as a base, it is directx based but it uses .net languages which are a no go for ios devices of course. it was stable enough to ensure a high compatibility with all the different machines out there, and we never thought at start to make it for any other platforms. this was our first mistake.

for the next 3 months i had to rewrite all the game codebase to c++ including building the engine itself using render api opengles. [dedicated post]

during these 3 months we also had to adjust the game to the iphone screen size. just out of curiosity the native resolution on pc is hd, 1280×720 and the iphone native is 640×426. [see more on ios hardware]

at first we considered using the same images and using the same feature we used on pc to automatically scale the game to the screen size. but doing that would be a tremendous effort to the device since the iphone screen size was almost 3 times smaller; memory and cpu cycles are more limited in mobiles so we had to make a smarter approach.

one of the problems was the game being extremely slow on older devices. the amount of particles and animations on some parts was a total killer. i eventually had to rewrite my primitive drawing code to batch stuff as much as possible

another problem was the aspect ratio, which would lead to either stretching the game vertically thus distorting the images or making it letterboxed.

the screen is already small so it would be a mistake not to take advantage of all the area. rita had to redo some of the art to fit a different aspect ratio.

fortunately touch felt a very natural way for controlling the game, even more than a keyboard. using the fingers to rotate, shake and flip the cube feels right and natural.

the ipad version was easy once we had the iphone version made, basically we just had to bundle high-resolution images since its screen resolution is 1024×768. this version features the hd graphics that so many loved in the pc version.

most recently the hard work i did doing a somewhat multi-platform engine payed off and we released it for mac on the app store with around just 4 days of extra work .

App Store (iOS/iPadOS) mobile app Windows Phone Game engine Multi-platform Engine POST (HTTP) Aspect (computer programming) Rewrite (programming)

Published at DZone with permission of David Amador, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 6 Things Startups Can Do to Avoid Tech Debt
  • What Is HttpSession in Servlets?
  • Why to Implement GitOps into Your Kubernetes CI/CD Pipelines
  • Suspicious Sortings in Unity, ASP.NET Core, and More

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo