Page 1 of 2

Ninja

Posted: Sun 06 Mar, 2005 2:03 am
by Toaster
Hey everyone Iam makeing a new game called Ninja heres a screen shot: http://toaster.t35.com (Look at bottom of page.) Or....

Image

The story line is simple you are a ninja and your task is to defeat a evil king you have your ninja sword and mabey someother weapons as well. You will fight other ninjas and creepy zombies. :p And mabey will be able to do special moves too. Any ideas are welcome.

Posted: Sun 06 Mar, 2005 2:17 am
by Spengo
Yays! That looks fun. There aren't enough platform games for the Ti's yet. (so far the only good ones are sqrxz and mario) Can you make it smooth scrolling? Also, how bout a longer sword and make it animated! Oh yeah, and make it have a lot of cool bloody fx too like the original Mortal Kombat.

Posted: Sun 06 Mar, 2005 2:24 am
by DJ_O
Look nice. I hope this project will be finished. But I hope that you are not cancelling TFS for good (I made a news article about the come back of old dead RPG projects and included TFS in it so I hope it hasn't died as soon as I posted it :( )

Posted: Sun 06 Mar, 2005 3:06 am
by Madskillz
oh...what size limits for the sprites? I have some killer 32x32 sprites done, I can also try and do some 16x16...if you want? :D

Posted: Sun 06 Mar, 2005 4:00 am
by DarkAuron
Any reason why the right side of the health box and the second 0 flicker?

Posted: Sun 06 Mar, 2005 4:02 am
by benryves
"The Last of the Ninjas", not "The Last of the Ninja's". :)
There is no apostrophe in the plural form...

Anyway - looks great! Hope it goes well for you...

Posted: Sun 06 Mar, 2005 4:30 am
by blueskies
Unless the title got cut off.

"The last of the Ninja's patience!"
"The last of the Ninja's ability to reason!"
"The last of the Ninja's will to KILL!!"

hehe

Posted: Sun 06 Mar, 2005 6:53 am
by Mike K
Maybe he is lysdexic and he mean "The Ninja's Last"? :D

-Mike

Posted: Sun 06 Mar, 2005 11:19 am
by tr1p1ea
Erm ... Anyway it looks cool. I really like seeing new projects sprout up ... its exciting! :).

I think the health flashes because it is updated constantly?

Posted: Sun 06 Mar, 2005 4:35 pm
by DarkAuron
It shouldn't have to update every frame though :)

Posted: Sun 06 Mar, 2005 6:23 pm
by leofox
Looks good so far, Ninjas are always cool.

Posted: Sun 06 Mar, 2005 6:39 pm
by Toaster
Iam still working on The Forgotten Sword. :) This is just something iam working on while iam board of working on TFS. :wink: In TFS you can now have up to 4 weapons: Sword, Battle Axe, Bow, and The Forgotten Sword. :D I may even include some armor for you to use too.

The health is updated every time so I will just change it so it does not update every time only when you get hurt or heal yourself. The P(Power) is for your moves if you run out you have to wait till it charges up. Does anyone know a fast line drawing routine because the entire program slows down when I use ILine. I cant really make the sword longer unless I make the sprite wider. :(

Edit: Tr1p1ea Iam useing LUT's! :wink: I dont know if you can really tell or not but there's some sorta animation for walking. :roll:

Posted: Sun 06 Mar, 2005 6:49 pm
by Jim e
Well if it is just horizontal theres a good one in program help.
But if you need to draw any kind of a line, I wrote one that seems to be one of the fastest.
http://www.ticalc.org/archives/files/fi ... 34642.html

Posted: Sun 06 Mar, 2005 6:55 pm
by Toaster
Thanks Jim e. :bow: :bow: (Where's the bow emoticon???)
I will try to add the code to my game right now. (I will include you in the credits!)

Edit: Okay I need some help with that line drawing routine. :P

Code: Select all

                ;Draws power
                ;Draws First Line
	ld      d,36
  	ld      e,60			
	ld a,(power)
	add a,36 
 	ld      h,a	
 	ld      l,60		
	call line                  ;Draw a line with above coordinates

Code: Select all

line:
	ld a,h
	cp d
	jp nc,noswapx
	ex de,hl
noswapx:

	ld a,h
	sub d
	jp nc,posx
	neg
posx:
	ld b,a
	ld a,l
	sub e
	jp nc,posy
	neg
posY:
	ld c,a
	ld a,l
	ld hl,-12
	cp e
	jp c,lineup
	ld hl,12
lineup:
	ld ix,xbit
	ld a,b
	cp c
	jp nc,xline
	ld b,c
	ld c,a
	ld ix,ybit
xline:
	push hl
	ld a,d
	ld d,0
	ld h,d
	sla e
	sla e
	ld l,e
	add hl,de
	add hl,de
	ld e,a
	and %00000111
	srl e
	srl e
	srl e
	add hl,de
	ld de,gbuf
	add hl,de
	add a,a
	ld e,a
	ld d,0
	add ix,de
	ld e,(ix)
	ld d,(ix+1)
	push hl
	pop ix
	ex de,hl
	pop de
	push hl
	ld h,b
	ld l,c
	ld a,h
	srl a
	inc b
	ret

Xbit:
 .dw drawX0,drawX1,drawX2,drawX3
 .dw drawX4,drawX5,drawX6,drawX7
Ybit:
 .dw drawY0,drawY1,drawY2,drawY3
 .dw drawY4,drawY5,drawY6,drawY7
	
DrawX0:
	set 7,(ix)
	add a,c
	cp h
	jp c,$+3+2+1
	add ix,de
	sub h
	djnz DrawX1
	ret
DrawX1:
	set 6,(ix)
	add a,c
	cp h
	jp c,$+3+2+1
	add ix,de
	sub h
	djnz DrawX2
	ret
DrawX2:
	set 5,(ix)
	add a,c
	cp h
	jp c,$+3+2+1
	add ix,de
	sub h
	djnz DrawX3
	ret
DrawX3:
	set 4,(ix)
	add a,c
	cp h
	jp c,$+3+2+1
	add ix,de
	sub h
	djnz DrawX4
	ret
DrawX4:
	set 3,(ix)
	add a,c
	cp h
	jp c,$+3+2+1
	add ix,de
	sub h
	djnz DrawX5
	ret
DrawX5:
	set 2,(ix)
	add a,c
	cp h
	jp c,$+3+2+1
	add ix,de
	sub h
	djnz DrawX6
	ret
DrawX6:
	set 1,(ix)
	add a,c
	cp h
	jp c,$+3+2+1
	add ix,de
	sub h
	djnz DrawX7
	ret
DrawX7:
	set 0,(ix)
	inc ix
	add a,c
	cp h
	jp c,$+3+2+1
	add ix,de
	sub h
	djnz DrawX0
	ret

DrawY0_:
	inc ix
	sub h
	dec b
	ret z
DrawY0:
	set 7,(ix)
	add ix,de
	add a,l
	cp h
	jp nc,DrawY1_
	djnz DrawY0
	ret
DrawY1_:
	sub h
	dec b
	ret z
DrawY1:
	set 6,(ix)
	add ix,de
	add a,l
	cp h
	jp nc,DrawY2_
	djnz DrawY1
	ret
DrawY2_:
	sub h
	dec b
	ret z
DrawY2:
	set 5,(ix)
	add ix,de
	add a,l
	cp h
	jp nc,DrawY3_
	djnz DrawY2
	ret
DrawY3_:
	sub h
	dec b
	ret z
DrawY3:
	set 4,(ix)
	add ix,de
	add a,l
	cp h
	jp nc,DrawY4_
	djnz DrawY3
	ret
DrawY4_:
	sub h
	dec b
	ret z
DrawY4:
	set 3,(ix)
	add ix,de
	add a,l
	cp h
	jp nc,DrawY5_
	djnz DrawY4
	ret
DrawY5_:
	sub h
	dec b
	ret z
DrawY5:
	set 2,(ix)
	add ix,de
	add a,l
	cp h
	jp nc,DrawY6_
	djnz DrawY5
	ret
DrawY6_:
	sub h
	dec b
	ret z
DrawY6:
	set 1,(ix)
	add ix,de
	add a,l
	cp h
	jp nc,DrawY7_
	djnz DrawY6
	ret
DrawY7_:
	sub h
	dec b
	ret z
DrawY7:
	set 0,(ix)
	add ix,de
	add a,l
	cp h
	jp nc,DrawY0_
	djnz DrawY7
	ret
Everything Compiled okay I just dont see a line. :( Do I have to use negative 60?
Thanks for any help. :)

Posted: Sun 06 Mar, 2005 9:53 pm
by Spengo
For the sword, how bout making the sword a seperate sprite? That way, you could make it so the sword is bigger and has more animation, and also, you could make it so that only hitting people with the sword kills them(instead of just have the ninja with the sword out killing them). Then bad guys could still kill you if they got you from behind/above.