NinjaScroll - a work in progress.
-
is the background-scroll randomly generating patterns, or is it a predefined level length and layout?
-
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!
-
Interesting, that's insightful thanks!
-
@Dave Looking really nice, mate!
One thing that I would say is I think the enemies should run further before jumping in. -
@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!
-
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 screenWill make a post in the next couple of days with some progress!
-
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.
-
That looks awesome :)
-
@Jaywalker Cheers mate!
-
@Dave my son's throwing a fit over this haha,
Brilliant -
Very cool indeed!
-
@waldron That's the best I could hope for!