Giter Site home page Giter Site logo

galexcode / galaxyapocalypse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hollance/galaxyapocalypse

0.0 2.0 0.0 15.36 MB

My January 2013 game for #OneGameADay (iPhone). The galaxy is falling apart and it's your job to move all the planets back to where they belong. Lots of swiping involved.

galaxyapocalypse's Introduction

GALAXY APOCALYPSE

This is my January 2013 game for One Game a Month. See also my blog post.

Screenshot

The game rules

The galaxy is falling apart! To save it, you have to move the planets back to where they belong!

Every so often portals appear on the screen. Your job is to swipe the planets into a portal of the matching color.

The portals lose power over time. Matching a planet with the wrong portal will drain even more power from the portal. If a portal has no more power it collapses and takes the entire universe with it!

Moons (the grey things) can be matched with any portal. A white portal accepts any type of planet. The only thing you should never send through any portal is a black hole (obviously).

Now go save the galaxy!

Building the game

Galaxy Apocalypse was made using Objective-C and the Cocos2D and Box2D libraries, which are included as a git submodule. It requires at least iOS 5 and ARC.

After cloning the repo, do this from Terminal to pull in the Cocos2D source code and switch it to the stable v2.0 branch:

$ cd to_where_you_cloned_the_repo
$ git submodule update --init
$ cd Source/External/Cocos2D
$ git checkout release-2.0

Then open Game.xcodeproj into Xcode and build the "Game" target.

You may want to set the COCOS2D_DEBUG flag in the "cocos2d" target to 0 (instead of 2) to reduce the amount of debug output from Cocos2D, which slows down the game a lot.

I also included the Photoshop files for the artwork (CS6) and the individual sprite images. The sprite sheets were made using TexturePacker, the fonts using Glyph Designer.

What next?

The game is OK but needs more work to stand out.

Some ideas:

  • The game play could use some balancing. Difficulty should improve more consistently; sometimes the game feels much harder than other times (too random). Especially having two or three portals at the same time makes it become very hard very quickly.
  • Draw a trail of particles where you are swiping.
  • One really big planet, occurs only every so often.
  • Comet storm: small comets fly into the screen at a random angle and add additional impulse to all planets.
  • Bonus points for catching the space man / alien.
  • Game Center leaderboards for high scores.
  • Maybe you can still "pull out" a planet that goes into the wrong portal, but it is a lot heavier while it is colliding with the portal.

Known issues:

  • The text is sometimes blurry. I blame Cocos2D for this. ;-)

License and credits

Don't be a jerk and put this game on the App Store. Just because I give it away for free doesn't mean it's cool to remove my name from the credits and charge money for it. Yes, I'm talking to you, Wang Ting.

Most of the imagery was based on NASA photographs from www.jpl.nasa.gov.

Intro music: Lightless Dawn by Kevin MacLeod (incompetech.com).

Game music: Trial By Fire by Matt McFarland (www.mattmcfarland.com).

Explosion animation by WrathGames Studio.

Sound effects from freesound.org and opengameart.org. Because I was in a hurry when I made this game, I didn't pay much attention to the licensing on the sound effects. They are OK for non-commercial use but may not all be cleared for commercial use.

Source code is copyright (C) 2013 M.I. Hollemans

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

galaxyapocalypse's People

Contributors

hollance avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.