Author Topic: My really crappy game...Dragonslayer  (Read 11727 times)

0 Members and 2 Guests are viewing this topic.

g28401

  • Guest
My really crappy game...Dragonslayer
« Reply #15 on: January 19, 2006, 05:54:00 pm »
Um, I really don't know how to do much of anything, except what was in the game so far.  Having a different sub-routine each time is getting complicated, so learning the getkey function would be cool.  Oh, and the picture thing on the guild path is going to be fixed in a couple of minutes.

EDIT:I am currently having trouuble getting the group to upload to my website. Don't try to download the game because it doesn't exist right now  :dang:banghead.gif

LATER

It ain't working. Tommorow i will try again   :paf:tripaf.gif

tenniskid493

  • Guest
My really crappy game...Dragonslayer
« Reply #16 on: January 20, 2006, 02:00:00 am »
Probably the best way you could do user-input would be to use one sub-program just for that.  This way it saves a lot of space and, if you want to change it to something different, you only have to change one program.  Also, making a text-decoder would help save a lot of space as well because you would only have 1 Disp instead of a lot.

g28401

  • Guest
My really crappy game...Dragonslayer
« Reply #17 on: January 20, 2006, 01:39:00 pm »
The problems have been solved.

###########################################

BTW, is it possible to create a bitmap image on the computer and send it to the calculator?

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
My really crappy game...Dragonslayer
« Reply #18 on: January 20, 2006, 02:03:00 pm »
Nope.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
My really crappy game...Dragonslayer
« Reply #19 on: January 20, 2006, 03:50:00 pm »
indeed it is possible, you need to save it in 96x64 dimensions, use Image Studio http://omnimaga.dyndns.org/index.php?showtopic=268 to convert your image to 8xi file, and use TI connect to send it to the calculator :)smile.gif

I believe TI connect can convery bmp files to 8xi but I'm not sure

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
My really crappy game...Dragonslayer
« Reply #20 on: January 20, 2006, 04:59:00 pm »
Well that's good news to me then :Pblah.gif.

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
My really crappy game...Dragonslayer
« Reply #21 on: January 21, 2006, 02:28:00 am »
yep TI-connect can do the job, too :)smile.gif

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
My really crappy game...Dragonslayer
« Reply #22 on: January 21, 2006, 08:30:00 am »
So have you looked at the optimizations yet? And have they helped you?

g28401

  • Guest
My really crappy game...Dragonslayer
« Reply #23 on: January 21, 2006, 11:06:00 am »
Tommorow when I get back to MY computer i will take a look at those optimizations.  how do you use the getkey function?  

tenniskid493

  • Guest
My really crappy game...Dragonslayer
« Reply #24 on: January 21, 2006, 01:11:00 pm »
The getkey function works very simply.  It detects when a key is being pressed and then assigns a value that corresponds with that key to a variable.  However, getkey doesn't wait for you to press a key, it just passes right over it and assigns it to it once, so you will need to put it inside of a loop.  Here is an example code: (Keep in mind that "<>" = "Not equal to" and "->" is the Store key.

c1-->
CODE
ec1Repeat K<>0
Getkey->K
End
c2
ec2

This example will continue to loop until you press a key.  This is because if your program passes over a Getkey and no keys are being pressed, it assigns 0 to the variable that is stored from the Getkey (In my example that was K).  If you would like to detect a certain key, just change my 0 to something else.  The way the values work is first the row # and then the column #.  For example, Enter would be 105 because its in the 10th row and the 5th column or Y= would be 11 because its in the 1st row and the 1st column.

As programming is always a learning experience, I think its better for me to not give you the exact code that you need, but rather you try to use this information to develop your own code.  If you have any further questions, don't hesitate to ask.  My suggestion for trying to learn how to detect input, would be to first just make a dummy program that checks for two different keys being pressed, and then have it say something like "You pressed left" or "You pressed right".  Then try to implement what you learned into what you need for your game.

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
My really crappy game...Dragonslayer
« Reply #25 on: January 21, 2006, 02:23:00 pm »
In your game you will notice a few getkey functions I used, waiting for the user to press any key instead of having to press enter.
c1-->
CODE
ec1Repeat getkey
Endc2
ec2
If no key is pressed then it will keep going (stays in the loop), but when a key is pressed it passes the loop. Another example I did is.
c1
-->
CODE
ec1Repeat Ans
getkey->K
Endc2
ec2

g28401

  • Guest
My really crappy game...Dragonslayer
« Reply #26 on: January 22, 2006, 05:44:00 am »
I am unable to look at the optimizations...My computer is being an a**.

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
My really crappy game...Dragonslayer
« Reply #27 on: January 22, 2006, 08:27:00 am »

g28401

  • Guest
My really crappy game...Dragonslayer
« Reply #28 on: February 01, 2006, 06:25:00 pm »
You have been banned from this forum.
Please contact the webmaster or board administrator for more information.
wtf???
Next version of DS will be up soon (minor changes)

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
My really crappy game...Dragonslayer
« Reply #29 on: February 01, 2006, 06:30:00 pm »
Well he is debugging the sourcecoder2 so just use sc1.
http://www.cemetech.net/projects/basicelite/sourcecoder.php