Game Ideas
|
Post your ideas for new games here, or build on ideas posted by other visitors.
|
|
Reply to this item
|
Grayscale 83+ idea
|
Ced McD
|
I was wondering if it's possible to change the contrast on a specific part of the screen to make grayscale look good for the TI-83+.
|
|
9 January 2004, 00:36 GMT
|
|
Super Buster Bros.
|
Ced McD
|
Can someone make a Super Buster Bros. game, if you know what it is? I'm not that good at assembly but if you get it started I can finish it.
|
|
9 January 2004, 00:39 GMT
|
|
Re: Game Ideas
|
Cody Uhlrich
(Web Page)
|
Hey, I am STILL trying to get my Paper Boy game working. I made to text versions, but they kinda suck. If anyone can help me get graphic working for an 83+ they will get their name/and or email added to the credits and trouble shooting page. Email me @ smartturkey16@yahoo.com. I put the otherone because it is a junk email. Thanks.
|
|
9 January 2004, 18:17 GMT
|
|
|
|
|
|
|
|
|
|
|
Re: Re: BASIC Drawing loop Loop
|
Jonas Theslöf
|
Mail me the code and I'll have a look at it, but I can't promise anything...
If you need a key press-loop; try this:
:While 1
:0 -> X
:While X=0
:getKey -> X
:End
<!-- Here you put all the "If, Then...
e.g.
:If X=45:Stop
:If X=24:"Go left"
:If X=25:"Go up"
:If X=26:"Go right"
:If X=34:"Go down"
<!-- Always finish the loop with:
:End
"While 1" makes the getKey-loop go around and around untill you exit it with a Goto, Stop, Return, ON, etc.
the "While X=0" makes the program stay in getKey mode until a key is pressed, resulting in the "If, Then" part. If you don't use an exiting command, the "While 1" will make X=0 and the getKey-loop start all over again.
Other good loops can consist of nested For-loops. I rarely use the Repeat-loop, but it can also be used. It works as a Wile-loop, but it runs through the entire loop and at the bottom decides if it should return to the start of the loop again, or not.
E.g.
:22 -> X
:Repeat X=23
<!-- In a While-loop the program would have jumped directly to the End, but here the program gives it a try
:X+1 -> X
:End
<!-- Since X now IS 23, the program will REPEAT, the second time it gets here, it will be 24 and the program will continue
A good tutorial on Basic is BasicGuru; it looks over a LOT of things, but far from all...
If you want to learn Assembly, check out the Archives/File Archives/Via the web/Text/Z80 documentations!
|
|
1 February 2004, 21:41 GMT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Re: Re: BASIC Drawing loop Loop
|
Al Darian
|
An much faster keypress loop is:
While 1
DelVar KWhile not(K
getKey->K
End
...
End
This saves several bytes, as well as going faster. If this is like most keypress codes, it will be used hundreds of times, even little gains help a lot.
In this code, the "While 1" creates an infinite loop. This is because without a test operator, the program tests for boolean true. Any positive non-zero value is a boolean true. Since a constant 1 is always a boolean true, the while loop always runs. (This also works for any other positive non-zero value, 1 is just a convention.)
"DelVar K" does the same thing as "0->K" with less bytes. In addition, it doesn't require a new line or colon at the end, saving two more bytes.
The "While not(K" means that as long as K is NOT true, it will run. If K = 0 it is not true, and will continue the loop. This boolean way of checking values works much faster than a "=" statement. (The reason is too complicated for here, but basically, it takes more processor time to go through the algorithms for "=" than for a boolean true/false.)
The rest of the program should be self explanatory.
|
|
7 October 2005, 17:17 GMT
|
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
You can change the number of comments per page in Account Preferences.
|