Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Hot_Dog on January 11, 2011, 02:17:52 am

Title: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on January 11, 2011, 02:17:52 am
Here's a preview of the area of Korhal IV, displaying the capabilities of Map Mode and using string variables.  (I was totally blown by how fast this map can scroll, and I hope you are too!)

There are some graphic errors, but I assure you that they are mistakes I made in making the tilemap data.  They are not Correlation-related errors.   :angel:

Code: [Select]
int(KORHALIV
ZoomSto
0->A
0->B
60->Thetastep
Lbl 0
getKey->K
If K=24
A+16->A
If K=25
B+16->B
If K=26
A-16->A
If K=34
B-16->B
If K=0
Goto 0
ë^(B,A,Str0
Goto 0
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: TIfanx1999 on January 11, 2011, 03:57:20 am
That looks really awesome! =) 15 MHz I assume?
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on January 11, 2011, 04:00:24 am
Nice so far :D
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on January 11, 2011, 04:09:37 am
That looks really awesome! =) 15 MHz I assume?

6 Mhz, unless Wabbitemu is inaccurate
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Builderboy on January 11, 2011, 05:21:21 am
It depends on which rom you are using, but i believe wabbit always runs a bit on the faster side.  That being said, this looks awesome! :O
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: TIfanx1999 on January 11, 2011, 05:30:41 am
Wow, that's really fast if it's only running at 6 MHz! :o
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on January 11, 2011, 04:23:45 pm
Nice, I wonder how fast games will be with 200+ sub-programs and 2 KB of free RAM...
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Ashbad on January 11, 2011, 04:25:14 pm
darn, when I saw the words 'eye candy' I was thinking of something more sexually appealling.  Though those screenies are kinda smexy :3

Looks great, assembly methinks?
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Munchor on January 11, 2011, 04:26:25 pm
IS this basic? If yes, awesome. If not, still good ;D
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: yunhua98 on January 11, 2011, 04:34:53 pm
Correlation, its a proof of concept.  ;)
I wish we could do that in BASIC.  :P
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on January 11, 2011, 08:18:29 pm
IS this basic? If yes, awesome. If not, still good ;D

Ti-Basic with the help of Correlation.
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: willrandship on January 11, 2011, 08:34:26 pm
So, how good at on-the-fly font-switching is correlation? Of course, you could use just the Graph screen, and only use the regular 3x5 text for when you need words :P
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on January 11, 2011, 09:22:07 pm
So, how good at on-the-fly font-switching is correlation? Of course, you could use just the Graph screen, and only use the regular 3x5 text for when you need words :P

Yeah, you can always use Text( and Output( when you want to use words.  Correlation is pretty good at on-the-fly font switching, but only if you don't abuse it.  Switching a font constantly inside of a for-loop is not recommended.
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on January 16, 2011, 04:03:22 pm
darn, when I saw the words 'eye candy' I was thinking of something more sexually appealling.  Though those screenies are kinda smexy :3

Looks great, assembly methinks?
You wanted Starcraft porn? ?????????
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on January 22, 2011, 05:31:01 am
After finally fixing an annoying bug, here's Zertaul moving around, on a 6 MHZ calculator.  I apologize for Zeratul being messed up when he moves right, I made a slip-up converting the sprite to be drawn using white, black and transparent.
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: qazwsx988 on January 22, 2011, 05:15:15 pm
Wow, looks good!
He looks kinda depressed though; his head is hanging down.
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: squidgetx on January 22, 2011, 05:17:48 pm
holy....So this is the future of hybrid BASIC tilemapping O.O Excellent work Hot_Dog!
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: AngelFish on January 22, 2011, 05:28:37 pm
 O.O
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: willrandship on January 22, 2011, 05:32:11 pm
Awesome!!!!!! I want it already :P
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: yunhua98 on January 22, 2011, 05:47:29 pm
AMAZING.

I want to beta test for Correlation.  O.O
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on January 22, 2011, 07:48:47 pm
Wow, looks good!
He looks kinda depressed though; his head is hanging down.

Lol!  I did this using old Starcraft sprites, and his head is hanging down there as well.  I guess his neck just grew into place like that
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on January 24, 2011, 03:57:54 am
Glad to hear it's fixed. This looks nice so far too. :D
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on February 06, 2011, 03:32:02 am
I got cutscenes working, a demonstration of using Word Wrap to the fullest.  Screenshot below. There are NO SPOILERS: What you see is an introductory mission having nothing to do with the plot.

I also included the source code, but most of it is hard to understand without context.  So I bolded and commented the Correlation-related code.

Quote

;ThetaMax is how far to the right to draw text in Word Wrap Mode.
;TMax is how far down to draw text.

96->Thetamax
59->Tmax



0->Xmin
94->Xmax
-62->Ymin
0->Ymax
ZoomSto
4->W
0->E
0->F
32->G
1->D

sub(Str0,W,G)->Str9

;Set Wrap Mode, meaning text drawn too far to the right is wrapped to the next line.  M1 = Mode 1.

int("M1
int(ZECUTSCN

;Draws the cutscene "text" (graphics)
e^(E,F,Str9)


W+G->W

;Update the screen.  DD doesn't mean anything, but I'm using it
;cause it stuck in my head as "the command to use"

int("DD


For(Z,1,600
End

For(Z,-44,-62,-1
Line(0,Z,95,Z,0
End
Line(0,-43,95,-43
Line(18,-43,18,-63
ListCUTSC(D+2)->Z
While W<=length(Str0)

int("M1

;The next command tells Correlation that "M" and "W" are wider
;than the rest of the characters used for text.  WY stands for
; WMMode Yes

int("WY

ListZTEXT(Z)->Theta
Z+1->Z
sub(Str0,W,1)->Str9


int(ZEPORTRA

;Displays a portrait of the character that is talking

e^(46,1,Str9


W+1->W

sub(Str0,W,Theta)->Str9
W+Theta->W

;Word Wrap Mode.  M2 is Mode 2.

int("M2
int("ZERATULT
e^(45,20,Str9

End


Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on February 06, 2011, 04:28:21 am
Wow looks great! It will make development of BASIC games so much easier. My favorite part is really word-wrapping. Could you post the strings content too so it's easier for people to know what is displayed by the code?
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on February 06, 2011, 04:38:00 am
Yeah, I like the word wrapping, although I still have a few touchups to put on it.  You can thank Rebma Boss...I was using word wrapping for S.A.D., and he was telling me "You know, why don't you incorporate Word Wrapping into Correlation?  I know that some people are frustrated having to display text one line at a time"

Anyways, here's the string.  The token "and" means Pause, and the token "Theta" means stop displaying the string.  Basically you can display text using several "and"s, allowing the user to press enter in between text.
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: yunhua98 on February 06, 2011, 07:55:12 pm
That looks awesome!  I really don't regret choosing this for an interview!  *Hint*  :P
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on February 06, 2011, 09:55:14 pm
That looks awesome!  I really ... interview!  *Hint*  :P

Lol, why don't you throw in a brass band while you're at it :P
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Yeong on February 06, 2011, 10:45:13 pm
wait--it was RPG?  O.O
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on February 07, 2011, 03:01:33 pm
Nice Hot dog, but what's with all the random stuff before the text? ???
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on February 07, 2011, 05:48:04 pm
Nice Hot dog, but what's with all the random stuff before the text? ???

Cutscene Data.  I have a font dedicated to cutscene graphics, so there's a 32 character string telling Correlation what to display
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on February 15, 2011, 04:36:13 am
I see. Now the image is gone, though, and I forgot what was the random stuff, but wasn't it tokens like >DMS or Shade(? If so, then does it means in Correlation we can even use tokens for font data, not just single characters?

You should probably re-upload the images, since all attachments from last week were lost :(

Also you might want to fix this sub-forum order, because they aren't ordered by last post date. D:
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Steelm on February 15, 2011, 10:48:21 pm
YES STARCRAFT :evillaugh: :crazy: :w00t: :love: :hyper: ._.
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on February 18, 2011, 12:03:24 am
I see. Now the image is gone, though, and I forgot what was the random stuff, but wasn't it tokens like >DMS or Shade(? If so, then does it means in Correlation we can even use tokens for font data, not just single characters?

You should probably re-upload the images, since all attachments from last week were lost :(

Also you might want to fix this sub-forum order, because they aren't ordered by last post date. D:

I see. Now the image is gone, though, and I forgot what was the random stuff, but wasn't it tokens like >DMS or Shade(? If so, then does it means in Correlation we can even use tokens for font data, not just single characters?

Did you check out this link?  http://www.omnimaga.org/index.php?action=dlattach;topic=5750.0;attach=5243  You can use tokens, and the table shows everything you can use.

The text data is below.  Also is 2 screenshots for steelm who had to miss some:
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on February 21, 2011, 02:48:28 pm
Cool, thanks for re-uploading them. :D
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: ztrumpet on February 21, 2011, 05:18:57 pm
Those screenies are looking great, Hot Dog. ;D
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: Hot_Dog on February 21, 2011, 05:46:53 pm
Thanks, ztrumpet!  And it's good to hear from you again!
Title: Re: Starcraft: Zertaul -- Eye Candy
Post by: DJ Omnimaga on February 23, 2011, 04:42:18 pm
He wasn't away actually O.O

I guess he probably didn't check here much, like me (I often catch up on 1 week of unread posts X.x)