forums

TNT Basic Forums > Feedback
Wishlist
< Last Thread     Next Thread >
Author
Thread        Post A Reply

12-11-2001 13:00

Posted by:
Heiko Hartmann

Click Here to Email Heiko Hartmann   Find more posts by Heiko Hartmann

Hi!

As an old GFA-Basic fan (I'm sure you know this also :-) I would like some things to be added to TNT Basic. Here comes the list:

1. select case statements. This is a good way to avoid lengthy and unreadable if/else/endif clauses. A select case statement may look like this:

select <expression>
case <condition1>
... ' do this
break ' break could be optional or automatic
case <condition2>
... ' do that
break
default
... ' or do even that
end select

2. You have a function to convert a number to a string but not vice versa (atoi()).

3. Min() & Max(). Two helpful functions: Min(a,b) returns the smaller one of a and b. Max(a,b) returns the larger one.

4. Syntax-Check in the editor. GFA-Basic had this nice feature that while you are typing your program in the editor it checked the syntax of the command (but of course not the semantic).

Of course I also have some 'bigger' wishes like OpenGL support or a runtime environment for Windows but I try to keep modest. :-)

Ciao, Heiko.

12-11-2001 13:13

Posted by:
John Treece-Birch

Find more posts by John Treece-Birch

Features

I can't say that I'm familiar with GFA-Basic but I like some of those suggestions. We should be able to get a few of those in for the next update.

Thanks for the feedback,
John

01-06-2004 04:45

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

quote:
1. select case statements. This is a good way to avoid lengthy and unreadable if/else/endif clauses. A select case statement may look like this:

select <expression>
case <condition1>
... ' do this
break ' break could be optional or automatic
case <condition2>
... ' do that
break
default
... ' or do even that
end select



I would like to second, third, and fourth this suggestion.

01-07-2004 12:12

Posted by:
JW

Location:
Netherlands

Click Here to Email JW   Find more posts by JW

about second suggestion

There is:

As number
As string

I think this is what you wanted, but it's allready there...

Jan-Willem

01-07-2004 17:51

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

We'll add it to the "to do" list

Ok, this is a reasonable request so we'll add it to our "to do" list. The list, in .txt format, has finally reached the size of 3 Gigabyte, stuffed. Currently your request is in position aleph0, between the (e^200)-th element [that is, adding game boy compatibilit to TNT] and (e^201)-th element [that is, integrate photoshop inside Hierogliph].

For every time you post a post seconding the request, you increase the position by one. For every 1$ you send you increase the position by 10. I you spend more than 100$ this way you get the Radical Rebound™ t-shirt kindly offered by Radical Rebound Software™

We are working hard on the element number 1, that is adding string input support, and we think we maybe will finish it this year.

So have faith, in a gazillion years the sons of our sons of our sons^(e^15) will probably reach game boy compatibility, then we can eventually reach your request, given of course that it is asked by at least 80% in an Europe-wide binding referendum.

Please continue with your requests, another e^(e^19) and we will publish he "to do" encyclopedia, by TNT Software, 28 tomes.

Cheers

Mark

01-07-2004 21:51

Posted by:
puffin

Click Here to Email puffin   Find more posts by puffin

raise your hand if you find it suspicious that Mark Tully is posting under matteos member name. the only possibility is that Mark murdered matteo and has stolen his identity, and that he posted as matteo posting as Mark to throw us all off!!! evil bastard!!!!!

Cheers,

Mark

01-07-2004 22:13

Posted by:
Mark Tully

Location:
TNT HQ, England

Click Here to Email Mark Tully   Find more posts by Mark Tully

You're all mad...

01-07-2004 22:28

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

Yes. Mad about Select... Case

01-07-2004 22:50

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

You made it!

Great Dan, you did it! You increased the position of "select case" by one! Now you won't need to wait for GB compatibility! Now select case is straight after "implementing 6-D graphics in a 4-D world" [highly requested by mark667 for his nuclear simulations]! Good move!

Hope this clarifies a few things™

Cheers™

Mark™

(*WAHAHAHAHAHA*)

;-)

01-08-2004 01:09

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

Matteo, I'd like to commend you on dispelling the myth that Italians are crazy.

01-09-2004 15:05

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

Hmmm... <thinks up a wicked reply>

-How did you guess it was me posting?
-Mortal, how DARE you challenge ME?
-Oh, thank you...
-Hmmm... it's not a myth.
-It's not italians that are crazy, it's the rest of the world
-Not all italians are crazy, only me
-Not all italians are crazy, only them
-Dan, I'd like to commend you on dispelling the myth that Americans have no humor.
-Dan, I'd like to commend you on dispelling the myth that all programmers are named Daniel L.
-Young man, hold your tongue, or somebody here might get hurt, and it's not me...
-Young man, hold your tongue, or somebody here might get hurt, and it's not you...
-I'll make you eat your tongue for that
-Oh, I didn't know I represented italy in the forums...
-In quality of the italian ambassador in the forums I am honoured to speak to a native american
-The paladin, although heaviliy wounded and tired, summons all his strength for the ultimate prayer: "Dispel Myth!"

and finally replies, with an american accent and grin

"Hope you can do better than that, man..."

01-09-2004 21:37

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

Ah. Whoops. Made a mistake in my last post. Please change the word dispelling to perpetuating.

;)

01-09-2004 22:41

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

Ressurection

Wow Dan, you brought this three year-old thread back to life!

And to avoid being accused of making useless posts, I'll also increase the position of select case by one.

01-10-2004 00:24

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

Because BASIC without Select Case is super frustrating. Figured I'd remind Mark & John before the next release. Hopefully, its not too hard to implement.

01-11-2004 20:52

Posted by:
venz

Find more posts by venz

TNT seriously needs some sort of text resource/ability to read files, this is absolutely nessecarily for a RPG game or for saves.
*grovels to the TNT gods*

01-12-2004 01:05

Posted by:
MapMaker

Location:
Edmonton, Alberta (Canada)

Click Here to Email MapMaker   Find more posts by MapMaker

...

Are you reffering to TNT's 'read file' and 'write file' commands?

:)

Read the TNT BAsic Help in the HelpViewer. It has alot of stuff you might need.

01-12-2004 21:30

Posted by:
venz

Find more posts by venz

*hits self*

01-12-2004 22:12

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

*SMASH*





*helps*

01-14-2004 04:36

Posted by:
eric

Location:
earth

Click Here to Email eric   Find more posts by eric

reading file and writing files

Acutually, I find then very good, games save are not hard to acomplish using those commands. I just seem not able to read the saved file using any word processor (which is a good thing).
What would be very cool is to seem the TNTbasic PC version. I know, I know it is on the list.
The main reason of this post is to say TNTbasic kicks some ass.
Luck

01-14-2004 05:00

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

quote:
I just seem not able to read the saved file using any word processor (which is a good thing).


Actually, it depends on the data type you make the file as. When creating a file, you specify whether the data is of type "DATA" or "TEXT". Data is made with TNT's special data format, and cannot be read with a word processor. However, the text format is easily opened in a word processor, meaning easier access to both you and the player.

01-21-2004 00:15

Posted by:
EvolPenguin

Location:
Chicago

Click Here to Email EvolPenguin   Find more posts by EvolPenguin

How about being able to compile tntbasic on the pc but not giving it to pc users so we can make games for them but they cant use TNT. Then they would get a mac. Also, since this is the real reason i posted, what is select case and what does it do?

Al

01-21-2004 06:22

Posted by:
puffin

Click Here to Email puffin   Find more posts by puffin

select case is another way to write conditional logic.

01-21-2004 22:31

Posted by:
DanLurie

Location:
Earth>USA>New Jersey>Clifton>My Chair

Click Here to Email DanLurie   Find more posts by DanLurie

select dayofweek
case saturday
goto sleep
case sunday
goto sleep
case else
goto work
end select

08-30-2004 21:48

Posted by:
MapMaker

Location:
Edmonton, Alberta (Canada)

Click Here to Email MapMaker   Find more posts by MapMaker

The smallest wish of the all..

A very simple thing that maybe could be included in the next version.
Allow a relative/absolute hotspot to be declared in the "copy image" command.

http://tntbasic.com/community/forums/showthread.php?threadid=1012

09-01-2004 01:24

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

wish granted...

Check the commands better!!!!


Set Image Offsets
Changes the position of the image's offsets

Syntax

Set Image Offset image,x,y
Set Image Offset image,bankNumber,x,y

Description

image is the index into the bank of the image to use.

bankNumber is the id of the image bank to get the image from. If this is not specified then the default image bank is used.

x,y are the new offsets for the image

09-12-2004 08:59

Posted by:
Wil Hostman

Find more posts by Wil Hostman

Select case

While I, too, wish for select/case modality, the typical basic implementation has a major issue for me....

I like the C++ style of
Select
Case 1
... do stuf for case 1
end case
case 0
case 2
... do stuff core case 2 or any case 0
default
...does stuff for other cases, plus since no end case, cases 0 and 2 also go throu here.
end case
end select

Another nicety would be logical comparitors in cases. (some basics allow this, most don't)
IE: Case <0
does stuff if the selection variable is less than 0.

Perhaps, use "select" for non-terminated cases (IE specific case statement carries own weight and terminates select upon next case statement) and "switch" for explicitly terminated cases...

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.