sketchucation logo sketchucation
    • Login
    ๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Prince IO Sketchup Game Demo

    Scheduled Pinned Locked Moved Developers' Forum
    42 Posts 26 Posters 29.8k Views 26 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottliningerS Offline
      scottlininger
      last edited by scottlininger

      Hey everyone,

      I've finally found the time to assemble a ZIP containing the knight game demo that I presented at Google IO last year. Unzip the contents into your Sketchup Plugins directory, then look for a new menu item under Plugins > Knight Game

      <edit>
      Too big to upload to the forums, so you can get it here...
      http://www.sketchupdemos.com/knightgame.zip
      It's about 4mb.
      </edit>

      This is an example of using a Ruby WebDialog to capture key strokes and control SU in a fun way. You can hear more details from the original preso: http://www.youtube.com/watch?v=FALvwBN5-hc

      Special thanks to Todd Burch for cleaning up the code and adding sound effects! If you could see my original demo code (and you never will!), you'd know why he's my hero. ๐Ÿ˜„ And apologies to the community for taking so long to share.

      Cheers,

      • Scott Lininger
        SketchUp Software Engineer
        Have you visited the Ruby API Docs?
      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by

        could we have the .zip please? ๐Ÿ˜„

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • J Offline
          JuanV.Soler
          last edited by

          Thanks ๐Ÿ˜„
          (remus, the link is given above)

          ,))),

          1 Reply Last reply Reply Quote 0
          • D Offline
            Daniel S
            last edited by

            Amazing game!!!
            Great work!!

            Thank you,
            Daniel S

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dhruv
              last edited by

              Thanks Scott, can feel that many more things can be done integrating javascript with sketchup.

              Cheers,
              Dhruv

              1 Reply Last reply Reply Quote 0
              • D Offline
                Dhruv
                last edited by

                Hey Scott,

                I tried converting 2dimensional game into 3d, like ability to go left and right. I did make some changes and it turns left and right, but does not run in that direction.

                And yes I changed 3rd person view to 1st person and going forward is up key and backward is down key. So before doing that I basically commented jump sword functions.

                1 Reply Last reply Reply Quote 0
                • Chris FullmerC Offline
                  Chris Fullmer
                  last edited by

                  Thanks for posting that Scott!

                  Chris

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    Fletch
                    last edited by

                    thanks! I wanted this first time I saw it! ๐Ÿ˜†

                    unfortunately I'm at work, and they refuse to give me SU7 for a few more weeks... no way we could get an SU6 version, is there?!

                    Fletch
                    Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      linea
                      last edited by

                      AWESOME SCOTT & TODD! Its fantastic, I had no idea this sort of thing was possible in SU. I want to make one! "How?" is a question I'm sure you'll be asked alot more.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Dhruv
                        last edited by

                        I made it run along Y axis as well, it was a little change and assigned J and S for jump and Swordhit respectively. Arrow keys for direction. Ill try and add more features.

                        Cheers,
                        Dhruv

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Dhruv
                          last edited by

                          Hey Coen Naninck,

                          I wanted to do something related to Dynamic components, like when you click on an object/model, it brings to some website. Like lets say I have built a Kawasaki motor bike , when I left click on it brings me to some kawasaki website online.

                          Will try out though, see if I can come out with this feature. It would be cool to use it in a game.

                          Cheers,
                          Dhruv

                          1 Reply Last reply Reply Quote 0
                          • pilouP Offline
                            pilou
                            last edited by

                            Totally amazing ๐Ÿ˜Žprince.jpg

                            Frenchy Pilou
                            Is beautiful that please without concept!
                            My Little site :)

                            1 Reply Last reply Reply Quote 0
                            • N Offline
                              notareal
                              last edited by

                              Thanks!

                              Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

                              1 Reply Last reply Reply Quote 0
                              • H Offline
                                HFM
                                last edited by

                                @fletch said:

                                thanks! I wanted this first time I saw it! ๐Ÿ˜†

                                unfortunately I'm at work, and they refuse to give me SU7 for a few more weeks... no way we could get an SU6 version, is there?!

                                It's pretty simple to make this SU6 compatible. Just save the maps [.skp] as SU6

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Matt666
                                  last edited by

                                  ๐Ÿ˜ฒ ๐Ÿ˜ฒ ๐Ÿ˜ฒ
                                  That's incredible...

                                  Frenglish at its best !
                                  My scripts

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    BTM
                                    last edited by

                                    I have a mac running OSX 10.5.5, and for every frame, I encounter the error
                                    %(#808080)["newGroundz:
                                    value=>-5000<
                                    TypeError: Value undefined (result of expression value.split) is not object."].
                                    the error pops up first, i have to click enter, then next frame, same error, this repeat over and over, then the knight falls through the floor, screams, and SU messes up. Any idea why?

                                    1 Reply Last reply Reply Quote 0
                                    • scottliningerS Offline
                                      scottlininger
                                      last edited by

                                      BTM,

                                      Ah, there's a snippet of code in the .rb file that detects if you're on a mac, but it was added back when the mac/su6 had WebDialog errors that are fixed in 7.

                                      I'll need to test on my Mac with SU7 and post a fixed version.

                                      • Scott Lininger
                                        SketchUp Software Engineer
                                        Have you visited the Ruby API Docs?
                                      1 Reply Last reply Reply Quote 0
                                      • plot-parisP Offline
                                        plot-paris
                                        last edited by

                                        fantastic! thank you so much for posting this game. indeed, a new era is about to begin ๐Ÿ˜

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          chief1234
                                          last edited by

                                          Thanks Scott, this is great!!

                                          I'm working on incorporating this into a school project, and I'm wondering if there's a way to load the engine onto any map without it being hardcoded.

                                          IE - if I could download anything from the 3D warehouse, start the Knight plugin and be able to navigate?

                                          Thanks in advance,

                                          Luke J.

                                          1 Reply Last reply Reply Quote 0
                                          • scottliningerS Offline
                                            scottlininger
                                            last edited by

                                            @chief1234 said:

                                            I'm wondering if there's a way to load the engine onto any map without it being hardcoded.

                                            Well, you could do one of two things.

                                            1. Open one of the .skp files inside Plugins/knightgame and edit the maps directly.
                                            2. Open the knightgame.rb file and modify the code to not load in a new model but simply run on top of the current model.

                                            So yeah... it's doable. Let me know if you have specific questions. ๐Ÿ˜„

                                            • Scott Lininger
                                              SketchUp Software Engineer
                                              Have you visited the Ruby API Docs?
                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement