Qix Game

0 favourites
  • 7 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • Hello to everyone

    I want to make a game like ?Qix?, here is a link if you don?t know about what I?m talking.

    youtube.com/watch

    I already have the idea of how to make the player can move online in straight line. But I don?t have how to make, when the player make a square, reveal an image in the background, also the enemies can?t move in the revealed part.

    If someone can help me please, I will be appreciated.

    Have a nice day!!!

  • A while back I came up with a way of doing a game like Quilox, which is very similar to qix. It was slow and unfortunately the capx doesn't work the same with newer versions of C2 due to a breaking change.

    Anyway for such a game the idea of doing a flood fill from all the enemies works well to indicate the play area, and anything not flood filled can be safely erased to show what's underneath. The second hurdle is having a way to draw and cut up the play field. Ideally pixels would be used as thousands of 1x1 sprites will drag down performance. The canvas object could be used and there are per pixel collision detection capx' around the forums that will also prove useful. One caveat is I don't think it's flood fill action will work for this problem, so it may have to be done manually. Or if you don't mind it much coarser you could use a bunch of larger sprites. Just find a balance between performance and detail.

    For objects only moving on the unrevealed area the idea is basically this:

    . if object is on play field.

    . then move object

    . if object is now not on the play field

    . then undo the move and pick a new direction to move.

    . repeat

    Here's an unpolished example to pick apart using vanilla c2 events:

    https://dl.dropboxusercontent.com/u/5426011/examples19/qix_like.capx

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey!!! Thanks a lot for the capx.

    I've been without internet several days, so I can't see your answer, now, you make me the happiest men in the world.

    When I finish this game, I will make a tutorial, because this is a excellent game and everyone have to try make one.

    Again, Thanks a lot

  • Awesome example!! Polished version here :3

    https://drive.google.com/file/d/0B7p49JKt0CGLTFZJR3RGdTNlN1E/view?usp=sharing

    CONTROLS: arrow keys

  • thanks for sharing, good stuff!

  • Good example. How to add Win condition ?

  • I would set a target for what percentage of the screen to clear, and then each level up increase the percentage required to win

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)