Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    NinjaScroll - a work in progress.

    Blogs
    11
    24
    2337
    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.
    • Dave
      Dave Fuze Team @pianofire last edited by

      @pianofire thank you so much man.

      1 Reply Last reply Reply Quote 1
      • D
        doumdoum F last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • Spacemario
          Spacemario F last edited by

          @Dave This is really cool! The foreground art reminds me of "Ninja Spirit", and the background art almost looks Game Boy-like-- it's a neat juxtaposition. The "enemies from background to foreground" trick is used in parts of my all-time favorite ninja game, "Shinobi III" on the Mega Drive/Genesis.

          Dave 1 Reply Last reply Reply Quote 1
          • Dave
            Dave Fuze Team @Spacemario last edited by

            @Spacemario ;) Nicely spotted! Yep - I couldn't remember exactly which games use that technique but I've played a few in my time. I love the effect though and was very, very happy to be able to recreate :)

            1 Reply Last reply Reply Quote 0
            • lawyerlounge
              lawyerlounge last edited by

              is the background-scroll randomly generating patterns, or is it a predefined level length and layout?

              1 Reply Last reply Reply Quote 1
              • Dave
                Dave Fuze Team last edited by

                It's an array of 5 elements, each containing the index into the array of level images.

                Each is drawn and scrolled with the camera, then, when the image at the end of the array is fully visible on screen, every element in the array is moved backwards, and a new element is created at the end, chosen randomly from a selection of the images (with a bias towards the trees, since they look good when repeating but the others less so).

                I'm using a function like this:

                function levelGen()
                    L = len(level) - 1
                    for i = 0 to L loop
                        level[i] = level[i + 1]
                    repeat
                    level[L] = selection[random(5)]
                    cam.x -= levelWidth
                return void
                

                Of course without the rest of the context this isn't much help, but I hope it answers your question!

                1 Reply Last reply Reply Quote 1
                • lawyerlounge
                  lawyerlounge last edited by

                  Interesting, that's insightful thanks!

                  1 Reply Last reply Reply Quote 1
                  • F
                    FuzeBen Fuze Team @Dave last edited by

                    @Dave Looking really nice, mate!
                    One thing that I would say is I think the enemies should run further before jumping in.

                    Dave 1 Reply Last reply Reply Quote 1
                    • Dave
                      Dave Fuze Team @FuzeBen last edited by

                      @FuzeBen The distance they run before jumping in will be randomised soon. Then, when they're coming out faster it should be quite a challenge to keep up with which ninja is coming from where and when they'll attack!

                      1 Reply Last reply Reply Quote 1
                      • Dave
                        Dave Fuze Team last edited by

                        Got some more updates coming to this! Latest additions:

                        Collision - ability to hit enemies and be hit
                        Player and enemy attack sounds
                        Player score
                        Game over condition with ending screen

                        Will make a post in the next couple of days with some progress!

                        1 Reply Last reply Reply Quote 5
                        • Dave
                          Dave Fuze Team last edited by Dave

                          Update to Ninja Scroll! Sorry this has been so delayed everyone!

                          There's a couple other clips I'll be posting in a moment. Now we can chop enemies down, get chopped down by enemies, there're sounds and a game over screen too :)

                          This game will be in the demos for the next Fuze update! See if you can beat my high score of 26. It gets quite silly in the later stages :)

                          Too many ninjas, too many many ninjas.

                          1 Reply Last reply Reply Quote 5
                          • Jaywalker
                            Jaywalker Donator last edited by

                            That looks awesome :)

                            Dave 1 Reply Last reply Reply Quote 1
                            • Dave
                              Dave Fuze Team @Jaywalker last edited by

                              @Jaywalker Cheers mate!

                              waldron 1 Reply Last reply Reply Quote 0
                              • waldron
                                waldron F @Dave last edited by

                                @Dave my son's throwing a fit over this haha,
                                Brilliant

                                Dave 1 Reply Last reply Reply Quote 1
                                • SteveZX81
                                  SteveZX81 F last edited by

                                  Very cool indeed!

                                  1 Reply Last reply Reply Quote 0
                                  • Dave
                                    Dave Fuze Team @waldron last edited by

                                    @waldron That's the best I could hope for!

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post