Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / |Ninja Scroll Revisited|

Author
Message
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 21st May 2005 01:32
For the clueless... no this is not based on the Manga, it's one of the very first games i started making and the origin of my "inability to finnish a game" disease. I was just asked to upload an A.I. demo so i did, thinking it might help others out as well.

Ok B-San, Ninja Scroll was never completed so this is a 'lite' version of what i did so far for stage 4 of the game. It has the basic A.I. principles of what i discussed on my site forums. Keep in mind that i created this like 3+ years ago plus it's not finnished or even polished.

|Program|

I cannot guarantee that the program will work on your system but it was made using dark basic classic which is pretty stable, that's your only assurance . You can download the program below:

Ninja Scroll

- 3c.dba loads the characters.
- 4aw.dba sets up the world.
- 4i.dba controls the interface.
- 4m.dba is the program core code.
- commoncode.dba contains a custom function i wrote to determine line of sight (very important for stealth games), the dark basic classic version wasn't accurate enough .
- 4c.dba contains the main AI code.

|Controls|

- WASD + Mouse for general movement.
- QE for cheesy side flips (part of combat maneuvering).
- Shift to switch stance (normal, stealth, combat).
- Normal stance for quick movement but makes noise.
- Stealth stance for slow movement but more quiet.
- Combat stance + mouse buttons for attacks.
- 1 Sword.
- 2 Climbing gear (to climb trees, figure out how to use it ).
- 3 Smoke bomb (2nd function K.O. bomb).
- 4 Grappling hook (used with climbing gear).
- 5 Darts.
- 6 Ninja Stars. (a Ninja game gotta have the stars! )
- 7 Health potion.
- 8 Mana Potion.

To retrieve your thrown items move close to them until their highlighted then left mouse click to collect them back. Obviously if you kill a man with a bullet you can't retrieve it!

|HUD|

- Left top is the health display.
- Right top is the mana display.
- Eye tells you when you can be seen.
- Ear tells you when you can be heard.
- was planning on adding smell but never got around to it.
- Map shows position, orientation and A.I. type of you and enemies (normal, confused and alert).
- Bottom middle is the stance indicator.
- Bottom right shows the current item.



|A.I.|

Nothing special, pretty straightforward. It's not a matter of trying to interprete the (my) code but more about trying to understand the underlying principles (like why i wrote this particular line of code) and creating your own code from what you learnt. Understanding other people's code is very hard! As for testing the A.I., try doing the following within the program:

- Try approaching the enemy while in the light.
- Try approaching the enemy while in the dark.
- Try making a sound when the enemies back is turned.
- Try using the K.O. gas and watch the enemy as they recover.
- Try using the smoke bomb and watch the enemies reaction.
- Try making sounds while hiding behind a tree.

|Problems|

Code is old school, i could find better ways of doing some of the stuff in there now that i'm a better coder than i was back then. As i've repeatedly said the game wasn't finnished so stuff like sword attacks won't work on the enemy, enemy won't attack you (just stand there stairing at you like a zombie), bugs, glitches etc.

Hope it helps.

Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 21st May 2005 04:21 Edited at: 21st May 2005 04:30
This is one of the better games I've seen/played.
A pretty good looking HUD and oooooh look actual people who are actualy walking. Good stuf!
few points though
1 - Add sound
2 - the life and mana meters can be replace by 1 pic of a ring and a scripted collor.
3 - what ever did you do to the camera! I was trying to sneak up on an enemy but there was a tree in the way, I couln't see sh*t :S

But apart from that , It's a great game

please reply
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 21st May 2005 06:26
lol you must not have read my post clearly. I made this game over 3 years ago and stopped developement around the same time. I've moved on to bigger and better things so i don't really plan on changing anything you see before you already, although at the time i really had plans on fixing that annoying camera!

But thanks for the comments anyways.

Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 21st May 2005 23:40 Edited at: 21st May 2005 23:41
Well I couln't find that wouln't edit it anymore in your first post so. But that's just details, were moveing on, big plans, big plans, big plans

please reply
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 22nd May 2005 02:21
I have a question actually. What modeler do you use? Those objects really look good...
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 22nd May 2005 04:33
Actually... at the time i was really crap at modelling but very good at manipulating . So using just the Ninja Model that came with Dark Matter i created several different types of Ninja's just by altering their texture files and adding some extra props here and there. All the other objects (houses, walls etc) are pretty much extended/extruded primitives plus a whole lot of internet textures.

Funny how you can do so much with so little resources he he.

Login to post a reply

Server time is: 2025-06-02 16:27:18
Your offset time is: 2025-06-02 16:27:18