This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
United-TI Archives -> TI-Basic
 
    » Goto page 1, 2, 3 ... 10, 11, 12  Next
» View previous topic :: View next topic  
Author Message
geekboy1011


Advanced Newbie


Joined: 13 May 2009
Posts: 99

Posted: 13 May 2009 04:37:33 pm    Post subject:

hi i'm looking for help /advice on how to make the game crimson warfare a flash game for the ti in basic
any help at all welcome
thanks in advanced
and will gladley give credit to those who help







Progress:
start screen is under debate
battle engine ........ workin on it Smile
so far we have decided(i think) that the enemies will move based on a loop counter when the troop # hits the desired value move else add one so on other than that thats it for the engine


map done mabey edited for more places

menues just need to be implemented yay


people already included on the credits
just about everyone on this forum


ignore the this and cmenu) horrible not wanted to play number ......wait i dont care until it is truly released( crimson.8xp is missing use the old one (calc crash and stuff need to get back up)
aa.8xp is the new backround for those who care

crimen(3) is the new menu sub routine by ti newb


Last edited by Guest on 11 Jun 2009 06:14:38 pm; edited 1 time in total
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 13 May 2009 05:04:12 pm    Post subject:

well this would be a really hard project for beginners...how well do you know TI BASIC?

Last edited by Guest on 21 May 2009 04:28:52 pm; edited 1 time in total
Back to top
geekboy1011


Advanced Newbie


Joined: 13 May 2009
Posts: 99

Posted: 15 May 2009 08:28:06 am    Post subject:

Somewhat well i still am learning about matrixes and list other than that pretty good also i am using xlib for what i have done all ready which is
the start screen, the map and the begining of the battle scren(having issues eith ehat i want it to look like it can totally be scraped if one can be made better)


Last edited by Guest on 15 May 2009 08:57:30 am; edited 1 time in total
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 15 May 2009 09:56:44 am    Post subject:

well lists are pretty easy and matrices are like multiple lists. could you give me some code to look at? I want to see what you came up with. also how do you plan doing the battle engine?
BTW I love crimson warfare so if we finish this it will be amazing.
Back to top
geekboy1011


Advanced Newbie


Joined: 13 May 2009
Posts: 99

Posted: 15 May 2009 11:02:25 am    Post subject:

any thing in what i have can be changed so here you go oh and like i said it requires xlib so it is included:)


uggh i hate my comp it usb ports stink wont transfer any thing half the time glad my moms work :)



Edit: oops forgot the battle engine my friends are trying t help to and we figured if set distance than check randint and if x kill else nothing or something like that



edit 2: the file i uploaded is old a new one will be out later as a edit to this one i think

would any one know how to add make a prog differ from 2 groups of srites?



edit 3 ; just thought i would put it out there that it is for the 83 series
the proper code will be up on sunday or monday what i have is not very good i am rewriting it over the weekend it was basically a very slow laggy horrible while loop it "should" be better when i put the right one up Smile ohwell sorry


Last edited by Guest on 15 May 2009 03:07:01 pm; edited 1 time in total
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 15 May 2009 03:41:29 pm    Post subject:

umm, where is the file? and what do you mean by 83 series don't you mean 83+? and why don't we use the CelticIII app it's better (I'll give it to you if you don't have it)
and by the way how many of you are coding at your school?


Last edited by Guest on 15 May 2009 04:03:28 pm; edited 1 time in total
Back to top
TI-newb


Member


Joined: 24 Dec 2008
Posts: 158

Posted: 15 May 2009 09:32:46 pm    Post subject:

i have no idea what Crimson warfare is about. But fill me in and il try to help out on anything.

and for the coding, i think when Eeems said "could you give me some code to look at?" you don't have to upload it. you can just type it down. and you don't have to type it all down. just a part of it would work.

Edit: BTW, your lucky you got several freinds who even know how use the ti-basic prgm func. at my school.. i know like 2 other people who can actually make something.


Last edited by Guest on 15 May 2009 09:34:53 pm; edited 1 time in total
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 16 May 2009 12:11:29 pm    Post subject:

I'm the only one at my school.
You don't even have to type it all down, you could use sourcecoder (linky) and it will make things much easier for you

PS. crimson warfare is a strategy game where you send troops to the other side, just search it up and you'll see


Last edited by Guest on 16 May 2009 12:12:34 pm; edited 1 time in total
Back to top
geekboy1011


Advanced Newbie


Joined: 13 May 2009
Posts: 99

Posted: 17 May 2009 01:52:55 pm    Post subject:

i would rather upload it all so any one who wants to work on it can oh and it should be up later it is also not much it is the main splash screen and the start of the battle screen
Back to top
TI-newb


Member


Joined: 24 Dec 2008
Posts: 158

Posted: 18 May 2009 11:34:57 am    Post subject:

okay. officially count me into this cool project.

Questions:
what are we using the draw sprites? Xlib or are we using CelticIII... cause ive only used Xlib b4.
*i guess i won't be working on the graphics
Back to top
ticalcnoah


Member


Joined: 28 Oct 2007
Posts: 153

Posted: 18 May 2009 12:01:56 pm    Post subject:

CelticIII has everything xlib has and more.
Back to top
geekboy1011


Advanced Newbie


Joined: 13 May 2009
Posts: 99

Posted: 18 May 2009 06:01:14 pm    Post subject:

personally i dont care on what we use celtic or xlib if some one can get me a full list of instructions for celtic 3 i cant find one here is the code i get a memory error in crim1 after moving around

this is crim1

Code:
real(0,1
:1→X
:real(3,1,0
:real(12,8,0,13,8,21,1
:Lbl AA
:Clear Entries
:0
:While Ans=0
:getKey
:End
:If 15 or 45 or 12 or 13 or 14 or 34 or 25:Then
:If X=5:X-4→X
:If X=0:4+X→X
:If Ans=15:Then:Text(3,32,"PAUSED":0:While Ans=0:getKey:End:real(12,7,32,3,54,8,1:Goto AA:End
:If Ans=12 or Ans=34:Then:X+1→X
:If X=5:1→X
:If X=2:Then:real(12,8,0,13,8,21,1:real(12,8,0,24,8,32,1:Goto AA:End
:If X=3:Then:real(12,8,0,24,8,32,1:real(12,8,0,35,8,43,1:Goto AA:End
:If X=4:Then:real(12,8,0,35,8,43,1:real(12,8,0,46,8,54,1:Goto AA:End
:If X=1:Then:real(12,8,0,46,8,54,2:real(12,8,0,13,8,21,1
:Goto AA:End:End
:If Ans=13 or Ans=25:Then:X-1→X
:If X=0:4→X
:If X=1:Then
:real(12,8,0,13,8,21,1:real(12,8,0,24,8,32,1:Goto AA:End
:If X=2:Then
:real(12,8,0,24,8,32,1:real(12,8,0,35,8,43,1:Goto AA:End
:If X=3:Then
:real(12,8,0,35,8,43,1:real(12,8,0,46,8,54,1
:Goto AA:End
:If X=4:Then
:real(12,8,0,46,8,54,1:real(12,8,0,13,8,21,1
:Goto AA:End:End:If Ans=14:Then:1→A
:prgmCMENU:End:End
:Goto AA

this is the main progcode aka crimson

Code:
:real(11
:If Ans≠3:Then:Disp "PLEASE ENABLE","xLIB":Pause
:Output(1,1,"      "
:Else
:real(10,2,0
:0
:While Ans=0
:getKey
:For(X,1,3
:If X=1:Then
:real(3,4,0
:Else
:If X=2:Then
:real(3,5,0
:Else
:real(3,6,0
:End:End:End:End
:"CRIM1
:real(10,0,15
:real(3,2,0
:DelVar XDelVar A1→X:Text(28,20,"CHOOSE A LOCATION
:Lbl MA
:0
:While Ans=0
:getKey
:End
:real(3,2,0
:If Ans=45:Then:real(10,2,0):ClrHome:Output(1,1,"             "):Stop
:Else
:If Ans=21:Goto SE
:real(3,2,0
:End
:If Ans=24:X-1→X
:If Ans=26:X+1→X:If X=0:3→X
:If X=4:1→X
:If X=2:Then
:real(1,41,28,1,8,0,0,7,3,0,1
:real(1,44,26,3,6,0,0,0,2,0,1)
:real(1,0,0,1,7,0,0,56,0,0,1)
:real(1,8,0,1,7,0,0,56,0,0,1)
:real(1,16,0,1,7,0,0,56,0,0,1)
:Text(57,53,"HELL ISLAND":Ans→C
:Else
:If X=1:Then
:real(1,5,50,1,8,0,0,8,3,0,1)
:real(1,8,47,3,6,0,0,0,2,0,1)
:Text(57,34,"ARTIC   WASTELAND"):real(1,0,0,1,7,0,0,56,0,0,1):Ans→C:Else
:If X=3
:real(1,80,7,1,8,0,0,8,3,0,1)
:real(1,60,5,3,6,0,0,0,2,1,1)
:Text(57,26,"GRACELAND,  SIBERIA
:Text(0,0,"PRACTICE"
:Ans→C
:End:End
:0
:Goto MA
:Lbl SE
:If X=1:Then
:real(0,1
:End
:If X=2:Then
:real(0,1
:End
:If X=3:Then
:real(0,1
:prgmCRIM1
:End



and this is where my menus are stored (not done or fuctional yet)

Code:
:If A=1:Then:
:Text(3,32,"<BUILD>"
:Lbl AA
:0
:While Ans=0
:getKey
:End
:real(12,7,32,3,64,8,1
:If 24 or 26 or 21 or 45:Then
:If Ans=24:Then
:A-1→A:End
:If Ans=26:Then:A+1→A:End
:If Ans=45:Then:Return:End
:


any Questions on the code just ask :)

also i need help with the battle engine mine is horrible any ideas?

the attachments is all of the code and pics needed

to run


Last edited by Guest on 18 May 2009 06:05:53 pm; edited 1 time in total
Back to top
simplethinker
snjwffl


Active Member


Joined: 25 Jul 2006
Posts: 700

Posted: 18 May 2009 06:30:16 pm    Post subject:

geekboy1011 wrote:
personally i dont care on what we use celtic or xlib if some one can get me a full list of instructions for celtic 3 i cant find one

Here is the current official release of Celtic III (3.09q). In it is the file ReadME.txt.
Back to top
geekboy1011


Advanced Newbie


Joined: 13 May 2009
Posts: 99

Posted: 18 May 2009 07:01:17 pm    Post subject:

Thanks Ive been Looking For that Smile
Back to top
ztrumpet


Active Member


Joined: 06 May 2009
Posts: 555

Posted: 18 May 2009 07:37:49 pm    Post subject:

geekboy1011 wrote:
this is the main progcode aka crimson

Code:
:real(11
:If Ans≠3:Then:Disp "PLEASE ENABLE","xLIB":Pause
:Output(1,1,"      "
: ...

I think you want:

Code:
:real(11
:If Ans=11:Then:Disp "PLEASE ENABLE:Pause"xLIB
:Output(1,1,"      "
: ...

This will check if xLIB is enabled vs if xLIB is enabled and it's on a 84+ SE.
Back to top
geekboy1011


Advanced Newbie


Joined: 13 May 2009
Posts: 99

Posted: 18 May 2009 07:52:19 pm    Post subject:

Cool i honestly have not checked to see the values of reals when apps are not installed but thanks that will work much better





oh and i looked at the readme for celtic 3 and i think i want to use that it does have a lot more and is fully back compatable ("mostly") with omnicalc etc but thanks that will still work fine Smile Smile Smile Smile


Last edited by Guest on 18 May 2009 07:58:10 pm; edited 1 time in total
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 18 May 2009 08:59:29 pm    Post subject:

I really love the map, but the title screen needs some work
also I noticed you were using Lbl's and Gotos...this isn't the best idea, you should replace them with something else, they can cause memory errors and they are really slow. so the AA section of crim1 could be a while loop and such.

Code:
:0
:While Ans=0
:getKey
:End

you could replace this with this

Code:
:0
:repeat Ans
:getkey
:End

or

:0
:while Not(Ans
:getkey
:End


Last edited by Guest on 18 May 2009 09:06:58 pm; edited 1 time in total
Back to top
ztrumpet


Active Member


Joined: 06 May 2009
Posts: 555

Posted: 18 May 2009 09:10:21 pm    Post subject:

You don't need the zero before the repeat loop. Smile
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 18 May 2009 09:14:30 pm    Post subject:

true, hmm, I found that optimization with the zero in it though somewhere...oh well, that is the most efficient getkey loop out there
Back to top
geekboy1011


Advanced Newbie


Joined: 13 May 2009
Posts: 99

Posted: 19 May 2009 08:58:39 am    Post subject:

Thanks guys i figured it out last night by displaying the amount of free ram just changed it to somthing like
Code:
while 1
while ans=0
getkey
end
"insert if statments here minus the gotos"
end



that is what i did oh and if you look at the pic0 in the file you can see my horribly drawn sprite sheet can some one make a better one Smile
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2, 3 ... 10, 11, 12  Next
» View previous topic :: View next topic  
Page 1 of 12 » All times are UTC - 5 Hours

 

Advertisement