Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / World Viewer

Author
Message
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 4th Jun 2006 22:12
Welcome to the World Viewer V1.0 thread.

The program itself is very basic so let i keep this short,

The program lets you type in a file name(WITHOUT extension) and then it asks for the extension(.X and .3DS supported)If you type it in it loads the object/World and you can move around with the arrow keys.You can pitch up the keys with the Keystate 12 and 13 buttons.

Features:
-Load your own model without replacing one in the folder.
-View your world easyly
-Move around
-Supports folders
-Tells framerate to spot slow points

ALSO:
this program is when its uncompressed only 17 lines.

Time for some screenshots.

The load screen with input:


In the viewer with my simple mario styled world:


and a top down view of the above one:


The code:


Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 5th Jun 2006 20:29
Instead of having

print "FPS=",(screen fps())

you should put

text 0,0,str$(screen fps())

to prevent the ugly black line at the bottom of the screen.

Insanity is just a state of mind
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 5th Jun 2006 22:02
oh,my first released project

NEW e-Drome Productions site!!!
http://e-dromeproductions.cv.vc/
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 6th Jun 2006 00:01
Or simply put a SET CURSOR 0,0 at the top of the loop, and then just use the print command. That's what I do.

For your first project, this is great. A model viewer is not the hardest thing to code, but it is pretty useful sometimes.


Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 6th Jun 2006 08:17
Every time i get a new language of coding ill be making lots of code examples for myself i can copy and paste somewhere else,as i once started MM level i though "Let it have a model preview?",and heres the result.

I am continueing my idea's and well,even if a project takes years,ill keep it free due the fact ALOT of things are given on the forums.

NEW e-Drome Productions site!!!
http://e-dromeproductions.cv.vc/

Login to post a reply

Server time is: 2024-03-29 10:03:58
Your offset time is: 2024-03-29 10:03:58