Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Luckyone on December 15, 2005, 10:57:00 am

Title: Star ship commander
Post by: Luckyone on December 15, 2005, 10:57:00 am
Me and Dragonlance are starting a new game called
starship commander ITS GOING TO BE AWESOME!Yeah
;)wink.gif


Edit: You forgot to close the tag... ;)wink.gif
Title: Star ship commander
Post by: dragon__lance on December 15, 2005, 11:15:00 am
k, sorry all for the bad intro by my friend. He's still kinda new to Ti community. anyways, i'm working on this project in the absense of zelda, since i'm waiting for xlib. so far, i'm main programmer, but once zelda is resumed, ill hand it over to lucky. this game will basicly be advance wars, but in space
@dyfunction:hope its all right with u for us to make this game. If it conflicts with Defilers, we can stop production.
Features: mission oriented
-5 or more mission for human
-5 mission for Necroid(alien) once u beat human campaign
-multiplayer(2 people on one calc)

so far, intro is done, and start work on missions. ill post screenie as soon as possible. If anyone would be willing to help beta test, just post ur email here...we might also release a demo :)smile.gif
Title: Star ship commander
Post by: BCTurk on December 15, 2005, 11:30:00 am
Beta Testing is fun :)smile.gif

[email protected]
Title: Star ship commander
Post by: Luckyone on December 15, 2005, 01:21:00 pm
Is it going to be good
Title: Star ship commander
Post by: DJ Omnimaga on December 15, 2005, 01:30:00 pm
hmm sound interesting, welcome to the forums btw :)smile.gif I hope to see a screenshot soon

will it have scrolling?
Title: Star ship commander
Post by: katmaster on December 15, 2005, 06:54:00 pm
Sounds cool!!! Welcome to the forums, Luckyone!

[email protected]
Title: Star ship commander
Post by: CDI on December 16, 2005, 12:14:00 am
:Pblah.gif dysfunctions game sounds difrent enough to be alright
Title: Star ship commander
Post by: dragon__lance on December 16, 2005, 10:29:00 am
yea, luckyone is one of my best friends from school and i thaught him some BASIC prgmming :)smile.gif
@dyfunction: can i c wat ur movement for cursor code is? i'm kinda stuck at having the cursor move around, Advance Wars style  
Title: Star ship commander
Post by: tenniskid493 on December 16, 2005, 05:28:00 pm
Welcome Luckyone.

[email protected]
Title: Star ship commander
Post by: necro on December 16, 2005, 07:04:00 pm
I'd obviosly be willing to sprite if you'd like, oh, and I love the alien name (:
Title: Star ship commander
Post by: dysfunction on December 16, 2005, 07:21:00 pm
dragon_lance: I've got absolutely no problem with you making a space-based TBS. In fact we can communicate and share ideas if you'd like. Unfortunately Graphlink seems to be broken on my computer, but I'll upload the program file instead tomorrow to show you my cursor movement. Be warned, it's a bit complicated, since I have some sprites 8x8 and some 16x16, and I have a rather complicated routine to make the cursor match the larger sprites.
Title: Star ship commander
Post by: dragon__lance on December 17, 2005, 07:38:00 am
hehehe, thx man :)smile.gif necro, i tried ur movement method u posted in Chosen, but it doesn't seem to work for me. right now, i have a working cursor system, but its SUPEr slow since it uses A LOT of if-then statements. :(sad.gif
@dyfunction: thatd be great if u could post ur code sometime  :)smile.gif
@necro: u think u can make any more 6*6 space ship sprites, so far i have enough, but maybe more alien ones. Plan-5 human, 5 alien. btw, i'll also prob need a planet(star port). thx
Title: Star ship commander
Post by: tenniskid493 on December 17, 2005, 09:18:00 am
I changed a few things from necros movement thing to suit my needs better but used it as a base.  Its unoptomized but here's the current code I use:

c1-->
CODE
ec1Repeat 0
getKey->K
If K=0:End
If K=25 or K=34
[A]((Y/8)+T+(K=25)+(3(K=34)),(X/8)+S+1)->L
If K=24 or K=26
[A]((Y/8)+T+2,(X/8)+S+2(K=26)->L
If fpart(L)=.1
Then
X->Z:Y->:theta:
If K=24 or K=26
Then
If X/8+S+(K=26)<=5 or X/8+S-(K=24)>=(W-7)
(X+8(K=26)-8(K=24))->X
End
If K=25 or K=34
Then
If (Y/8+T+(K=34)<=3 or (Y/8+T-(K=25)>=(H-5)
(Y/8(K=34)-8(K=25))->Y
End
If X=Z
S+(K=26)-(K=24)->S
If Y=:theta:
T+(K=34)-(K=25)->T
If K=24 or K=25 or K=26 or K=34:Then
real(2,0,S,T,W,H,0,12,0,8,0,0,0
real(1,X,Y,1,8,2,1,0,0,0,1
End
End
Endc2
ec2

S=Map Horiz. Offset
T=Map Vert. Offset
X=Character X location
Y=Character Y location
H=Height of Map
W=Width of Map

This mode keeps you in the middle until you reach the edge of a map, then it moves the character.

EDIT:  I got rid of all the gotos. ;)wink.gif
Title: Star ship commander
Post by: dysfunction on December 17, 2005, 01:03:00 pm
Ok, you guys need to get rid of the Lbls and Gotos. Also most of the Ifs. The

:If K=0:End

Is unnecessary.
Title: Star ship commander
Post by: DJ Omnimaga on December 17, 2005, 02:12:00 pm
QuoteBegin-"BASIC Code"+-->
QUOTE ("BASIC Code")
:AxesOff
:FnOff
:StorePic 3
:StorePic 4
:1→X:1→Y
:0→S:0→T
:16→W:16→H
:prgmMAP1
:1→[A](S+Y+1,T+X+1
:0→C:0→D
:1→I
:While 1
:If I=1:Then:2→I:Else:1→I:End
:real(2,0,T,S,W,H,0,12,0,8,I,0,1
:getKey→K
:If K=45:Goto E
:(K=34)-(K=25→C
:(K=26)-(K=24→D
:0→[A](Y+S+1,X+T+1
:If not([A](Y+S+C+1,X+T+D+1:Then:X+D→X:Y+C→Y:End
:1→[A](Y+S+1,X+T+1
:If T≠4 and X>6:Then:6→X:T+1→T:End:If T≠0 and X<5:Then:5→X:T-1→T:End
:If S≠8 and Y>4:Then:4→Y:S+1→S:End:If S≠0 and Y<3:Then:3→Y:S-1→S:End
:End
:Lbl E
:real(0
:End
Generated by http://www.cemetech.net/projects/basicelite/sourcecoder.php,
Title: Star ship commander
Post by: tenniskid493 on December 17, 2005, 02:16:00 pm
@dysfunction:  I know the labels and gotos are bad, I was just too lazy at the time to get rid of them.  EDIT:  I just removed them from my game.  Now to update the code.  EDIT:  Code updated.  dragon_lance: if you hate gotos, you may want to check the updated code.  I removed all of them.

:gotosuck:goto.gif

Also, although the "If K=0:End" is unnecessary, it makes your key presses run faster and gives a better response time so that it doesnt go through the whole loop everytime, only that very short loop.  In my mind, its worth the extra 5-10 bytes to make it run that much faster.
Title: Star ship commander
Post by: dragon__lance on December 17, 2005, 04:28:00 pm
thx, ill try it out pronto!
Title: Star ship commander
Post by: dysfunction on December 19, 2005, 09:15:00 am
I'm not sure how If K=0:End would result in better response time. Certainly it would increase framerate when a key is not being pressed, but since nothing is happening when a key is not pressed, I can't see how that would matter. All it should do is slow it down a bit when a key IS pressed, since it has that extra If to go through.
Title: Star ship commander
Post by: DJ Omnimaga on December 19, 2005, 09:23:00 am
I only see the use for grayscale stuff , but I used Repeat Getkey:end instead
Title: Star ship commander
Post by: tenniskid493 on December 20, 2005, 02:01:00 am
It increases the frame rate while you aren't doing anything so it isn't in the loop somewhere when you press the key, its always right at the getkey.  I don't know, maybe it doesn't help, I'll check it out later.
Title: Star ship commander
Post by: DJ Omnimaga on December 20, 2005, 02:33:00 am
what is good is that it makes key detection a bit better
Title: Star ship commander
Post by: dysfunction on December 20, 2005, 07:43:00 am
OK, I see now... I'll have to actually try it though.
Title: Star ship commander
Post by: tenniskid493 on December 20, 2005, 10:54:00 am
I've never actually tested it, it was just a theory I had.