Search Unity

Game in two days =) Ropector

Discussion in 'Made With Unity' started by friuns3, Mar 4, 2011.

  1. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    Play Multiplayer!
    Play Singleplayer

    Game is now avaible at Kongregate


    Game that i made in 7 hours from nothing =)


    made in 5 days
    [video=youtube;aiOzPCplYY0]http://www.youtube.com/watch?v=aiOzPCplYY0"]http://www.youtube.com/watch?v=aiOzPCplYY0
     
    Last edited: Dec 3, 2011
  2. SteveB

    SteveB

    Joined:
    Jan 17, 2009
    Posts:
    1,451
    ::thumbsup::

    I'm a big fan of rope-physics gameplay. :D

    -Steve
     
  3. Kokumo

    Kokumo

    Joined:
    Jul 23, 2010
    Posts:
    416
    Nice xD!
     
  4. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    Thats pretty great!! You can flesh out that idea so much and make it into a pretty cool game.
     
  5. kiranmaya

    kiranmaya

    Joined:
    May 27, 2010
    Posts:
    218
    awsome gameplay
    demo link plz.
     
  6. dee

    dee

    Joined:
    Jun 4, 2010
    Posts:
    36
    Nice work! I think you must continue creating it. With smart level design, god graphics and atmosphere this game would be awesome!! And your elastic rope physics are fantastic ! Are you using cloth to simulate it?
     
  7. theinfomercial

    theinfomercial

    Joined:
    Sep 9, 2008
    Posts:
    1,000
    Yay! A two day game made with Unity that doesn't look like crap! Excellent use of Beast. And the gameplay is pretty awesome too.
     
  8. Hao-Cher-Hong

    Hao-Cher-Hong

    Joined:
    Dec 15, 2010
    Posts:
    127
    Im nothing in front of you...
     
  9. PolyMad

    PolyMad

    Joined:
    Mar 19, 2009
    Posts:
    2,350
    2 days? LOL, where is that guy who wrote that to make a commercial game in 1 month you must be a genius? :D
     
  10. mikesgames

    mikesgames

    Joined:
    Apr 16, 2010
    Posts:
    1,071
    This looks awesome!
    Nice work!
     
  11. tuckdragon

    tuckdragon

    Joined:
    Dec 1, 2010
    Posts:
    37
    would make a really cool iphone game !
     
  12. Frank Oz

    Frank Oz

    Joined:
    Oct 13, 2010
    Posts:
    1,560
    Haha that's great! Nice one! :D I could never make a game in two days, it would kill me, lol.
     
  13. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    Thanks for voting!

    I have other project, but if you people donate, i can continue this game=)

    Yes, rope is interactive cloth.
     
  14. Greg-Sergeant

    Greg-Sergeant

    Joined:
    Feb 18, 2011
    Posts:
    76
    Looks good, i like the camera. How does it work?

    Is the rotation based on how far away, and in what direction the cursor is from the player. And its position follows the player?
     
  15. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    Hyvältä näyttää ;)
     
  16. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    Kiitos

    Here is Game Update
    http://www.youtube.com/watch?v=aiOzPCplYY0

    Thanks for donations, here i made some feature requests.
    -Motorbike like in Elastomania
    -Draw physics like in Crayon
     
    Last edited: Mar 8, 2011
  17. lilymontoute

    lilymontoute

    Joined:
    Feb 8, 2011
    Posts:
    1,181
    Loving it. =P
     
  18. holyjewsus

    holyjewsus

    Joined:
    Mar 7, 2011
    Posts:
    624
    The whole composition looks great, can you give any hints for creating the draw physics?

    How do you create those ramps on the fly?
     
  19. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    By pressing B key.
     
  20. holyjewsus

    holyjewsus

    Joined:
    Mar 7, 2011
    Posts:
    624
    hey sorry, I meant how do you implement a system like that, scripting or in editor.... sorry for confusion.
     
  21. Zone

    Zone

    Joined:
    Dec 3, 2010
    Posts:
    59
    amazing games, I have just been inspired.
     
  22. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    ah ok=) I just create planes using script, I can send you script example on email.
     
  23. Fidde

    Fidde

    Joined:
    Dec 20, 2010
    Posts:
    109
    Looks like very fun gameplay! Keep it up and thanks for the inspiration.
     
  24. damsku

    damsku

    Joined:
    Mar 10, 2011
    Posts:
    17
    That's pretty cool ! Good job FrIuNs :)
     
  25. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    Game is available now at facebook and kongregate
     
  26. bradjensen68

    bradjensen68

    Joined:
    Feb 2, 2009
    Posts:
    274
    Will you share the rope script? (pretty please?)
     
  27. Persona

    Persona

    Joined:
    Jul 25, 2010
    Posts:
    280
    I'd like to know as well.
     
  28. Hout Ka-Ptah

    Hout Ka-Ptah

    Joined:
    Mar 21, 2011
    Posts:
    5
    please, can you tell me, How you embed the unity scene in facebook page ..?
     
  29. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    Just go to http://www.facebook.com/developers/ and click Setup up new app.

    I will make tutorial latter. But there is build wall code for now.
    Code (csharp):
    1.     private void UpdateWall() //handles when player press b. and build wall
    2.     {
    3.         tmWall -= Time.deltaTime;
    4.         if (Input.GetKeyDown(KeyCode.Return))
    5.             _Loader.ResetLevel();
    6.  
    7.         bool build = Input.GetKey(KeyCode.B)  Wall > 0;
    8.         bool buildSticky = Input.GetKey(KeyCode.V)  WallSticky > 0;
    9.         bool buildDynamic = Input.GetKey(KeyCode.N)  WallDynamic > 0;
    10.         if (build || buildSticky || buildDynamic)
    11.         {
    12.             if (oldp == null || Vector3.Distance(cursor.pos, oldp.Value) > .5F)
    13.             {
    14.                 if (build) Wall--;
    15.                 if (buildSticky) WallSticky--;
    16.                 if (buildDynamic) WallDynamic--;
    17.                 if (oldp != null)
    18.                 {
    19.                     if (Holder == null)
    20.                     {
    21.                         Holder = new GameObject("Wall");
    22.                         var r = Holder.AddComponent<Rigidbody>();
    23.                         r.isKinematic = true;
    24.                         var dr = Holder.AddComponent<Wall>();
    25.                         dr.attachRope = buildSticky || buildDynamic;                        
    26.                         if (buildDynamic)
    27.                             Holder.rigidbody.constraints = (RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezePositionZ);
    28.                     }
    29.                     var o = oldp.Value;
    30.                     var cube = CreateCube(buildSticky ? woodMat : wallMat);
    31.                     var cubetr = cube.transform;
    32.                     Vector3 v = cursor.transform.position - o;
    33.                     cubetr.localScale = new Vector3(5, .1f, v.magnitude);
    34.                     cubetr.position = o;
    35.                     cubetr.LookAt(cursor.transform.position);
    36.                     var e = cubetr.transform.rotation.eulerAngles;
    37.                     if (e == new Vector3(270, 0, 0))
    38.                         cubetr.transform.rotation = Quaternion.Euler(270, 90, 0);
    39.                     if (e == new Vector3(90, 0, 0))
    40.                         cubetr.transform.rotation = Quaternion.Euler(90, 90, 0);
    41.  
    42.                     cubetr.transform.parent = Holder.transform;
    43.  
    44.                 }
    45.                 oldp = cursor.transform.position;
    46.                 tmWall = .05f;
    47.             }
    48.         }
    49.         else
    50.         {
    51.             if (oldp != null  Holder != null)
    52.             {
    53.                 Combine(Holder);
    54.  
    55.                 foreach (Transform t in Holder.GetComponentsInChildren<Transform>())
    56.                     t.gameObject.layer = LayerMask.NameToLayer("Default");
    57.                 Holder = null;
    58.                 oldp = null;
    59.             }
    60.             oldp = null;
    61.         }
    62.     }
    63.    
    64.     void UpdateEditWall()
    65.     {
    66.  
    67.         bool clear = Input.GetKey(KeyCode.C);
    68.         bool cut = Input.GetKey(KeyCode.X);
    69.         var vr = cursor.pos - Cam.pos;
    70.         var r = new Ray(Cam.pos, vr);
    71.         RaycastHit h;
    72.    
    73.         if (Physics.Raycast(r, out h, vr.magnitude, 1 << LayerMask.NameToLayer("Default")))
    74.         {
    75.             var mh = h.transform.GetMonoBehaviorInParrent() as Wall;
    76.             if (mh != null)
    77.             {
    78.                 //Debug.Log("Found");
    79.                 if (clear || cut)
    80.                 {
    81.                     Debug.Log("test");
    82.                     var rp = mh.GetComponentsInChildren<RopeEnd>();
    83.                     foreach (var a in rp)
    84.                         a.EnableRope(false);    
    85.                     if (cut)
    86.                         Destroy(h.collider.gameObject);
    87.                     else
    88.                         Destroy(h.transform.gameObject);
    89.                 }
    90.                 if (Input.GetKeyDown(KeyCode.F)  mh.ClickForce !=Vector3.zero)
    91.                 {
    92.                     mh.rigidbody.AddForce(mh.ClickForce*mh.rigidbody.mass   );
    93.        
    94.                 }
    95.             }
    96.         }
    97.  
    98.     }
    99.     private static void AddColl(string a, string b)
    100.     {
    101.         Physics.IgnoreLayerCollision(LayerMask.NameToLayer(a), LayerMask.NameToLayer(b), false);
    102.     }
    103.     private static void IgnoreAll(string name)
    104.     {
    105.         for (int i = 1; i < 31; i++)
    106.             Physics.IgnoreLayerCollision(LayerMask.NameToLayer(name), i, true);
    107.     }
    108.     private GameObject CreateCube(Material mat)
    109.     {
    110.         var holder = new GameObject();
    111.         var cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
    112.         cube.renderer.material = mat;
    113.         //cube.renderer.receiveShadows = cube.renderer.castShadows;
    114.         cube.transform.parent = holder.transform;
    115.         cube.transform.localPosition = new Vector3(0, 0, .5f);
    116.         return holder;
    117.     }  
     
  30. RandAlThor

    RandAlThor

    Joined:
    Dec 2, 2007
    Posts:
    1,293
    Do i attach this script (i think it is csharp) to an empty gameobject?
    If so i get some errors but maybe i just do it false.

    Maybe we do not need a complete tutorial but some simple sentence.
    Thank you
     
  31. EpicTwist

    EpicTwist

    Joined:
    Apr 19, 2011
    Posts:
    83
    Wow, and it takes me days to even learn unity3D! -And I'm still learning. Impressive work. :]
     
  32. wallen

    wallen

    Joined:
    Jul 29, 2010
    Posts:
    14
    amazing game. how to create ramp using script?
    thanks
     
  33. strobe

    strobe

    Joined:
    Apr 6, 2011
    Posts:
    26
    ZOMG.. this game is so original and addictive.. great work!!
     
  34. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    Some new gameplay videos

    Multiplayer

    Web Level Editor
     
  35. BlackHawkStudios

    BlackHawkStudios

    Joined:
    May 1, 2011
    Posts:
    107
    First I must say that was AMAZING. That is just a piece of art right there.

    On another note, what are those songs called? I MUST know! If you created them, please make them available for download!
     
  36. friuns3

    friuns3

    Joined:
    Oct 30, 2009
    Posts:
    307
    Thanks, on youtube there is random music from internet by KaZantip. I use Shazam to detect music name btw.
     
  37. hellcaller

    hellcaller

    Joined:
    May 19, 2010
    Posts:
    381
    Any tips how you made your sticky rope script?
     
  38. Burkenstein77

    Burkenstein77

    Joined:
    Dec 23, 2011
    Posts:
    17
    Looks really cool! Can you use the rope with the car? That would be sweet.
     
  39. TheSin

    TheSin

    Joined:
    Aug 4, 2011
    Posts:
    150
    Looks great, i've been prototyping something very similar to this in both 2d and 3d planes.
     
  40. _zeta

    _zeta

    Joined:
    Dec 24, 2011
    Posts:
    99
    Can you post a DL to the music you got in video please!