MaxCoderz

for your 1 bit pleasure!

All times are UTC




Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: xLIB Examples
PostPosted: Wed 06 Jul, 2005 7:21 pm 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 4094
Location: I cant seem to get out of this cryogenic chamber!
I thought that it might be a good idea to have a thread devoted to xLIB examples. If anyone has any small demos using the xLIB APP please post them here :).

Here is the simple demo which is now included in the ticalc.org release:

http://www.ticalc.org/archives/files/fi ... 35907.html

*note that you might have to wait a few days for ticalc.org to update the file.

There is a small challenge out for people to try and optimise the example for speed ... lets see if we can get it running fast :twisted:.

temp link: http://s4.yousendit.com/d.aspx?id=01593 ... EUCKE42HHA

_________________
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed 06 Jul, 2005 11:49 pm 
Offline
Calc Master
User avatar

Joined: Wed 22 Dec, 2004 3:07 am
Posts: 1454
Location: Through the Aura
Oh, I'll give it a try. :twisted:

_________________
Image


"You're very clever, young man, but it's turtles all the way down!"


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 8:08 am 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 4094
Location: I cant seem to get out of this cryogenic chamber!
Well there are a LOT of optimisations to be made, you will see :).

_________________
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 8:19 am 
Offline
Maxcoderz Staff

Joined: Fri 17 Dec, 2004 5:33 pm
Posts: 790
Location: On the dark side of the moon.
Hmm xLib seems powerfull. Good work tr1p :).

One thing I notice: in the demo the character 'flickers' when you walk. Can this be improved?

_________________
"They say that sea was created by a man named Maarten Zwartbol, a long time ago...." - Duck, an old Corbin version


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 1:37 pm 
Offline
Calc King

Joined: Sat 26 Mar, 2005 2:45 am
Posts: 1619
Location: your shadow
-you oughta add the flash gordan like capabilities, as flash gordan sucks
-you oughta add line, rect, polygon, circle, arc, ect, supput (with out over write)
-have a function to draw a sprite over the entire screen (good for inviromental stuff, like animated rain)
-have the direct imput enabled with support for multiple keys
-more than ten pics, and have xlib be able to generate those +9 pics
-if you get the time, a 16X16 tile mapper


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 2:08 pm 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 4094
Location: I cant seem to get out of this cryogenic chamber!
1) This is not a request thread, this is the example thread.
2) You sure thats ALL you want? Anything else? You want it to wash your dishes too?

_________________
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 3:20 pm 
Offline
New Member

Joined: Tue 05 Jul, 2005 8:49 am
Posts: 6
tr1p1ea wrote:
2) You sure thats ALL you want? Anything else? You want it to wash your dishes too?


[oftopic]If it can cool beer, could you add that functioality too then??[/oftopic] :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 8:50 pm 
Offline
Calc Master

Joined: Fri 17 Dec, 2004 3:22 pm
Posts: 1064
Location: Probably playing DDR
basjuh wrote:
tr1p1ea wrote:
2) You sure thats ALL you want? Anything else? You want it to wash your dishes too?


[oftopic]If it can cool beer, could you add that functioality too then??[/oftopic] :)
If you could do that triplea, it would be the best library ever! :twisted:

_________________
Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 11:13 pm 
Offline
Calc King
User avatar

Joined: Mon 20 Dec, 2004 6:47 pm
Posts: 2286
Location: Quebec (Canada)
your demo is way too hard to optimise tr1p, I am better at writing code so I think I'll just rewrite the whole ADEMO.8XP program from scratch :P

_________________
ImageImage
Bandcamp|FB|Youtube|Twitter


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 11:29 pm 
Offline
Extreme Poster

Joined: Tue 21 Dec, 2004 6:49 am
Posts: 496
Location: WI
Is there a prize?

_________________
Shaun


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 07 Jul, 2005 11:36 pm 
Offline
Calc King
User avatar

Joined: Sun 26 Dec, 2004 5:27 am
Posts: 2457
Location: SXIOPO = Infinite lives for both players
Perhaps tr1p's algorithm for a beer cooler. I hear it only takes 20 secs to cool a beer. :worship:

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri 08 Jul, 2005 2:03 am 
Offline
Calc King

Joined: Sat 26 Mar, 2005 2:45 am
Posts: 1619
Location: your shadow
I agree with kevin, there was so much extraneous code that it took me a good while to figure out how your scrolling method worked


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri 08 Jul, 2005 11:36 am 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 4094
Location: I cant seem to get out of this cryogenic chamber!
Well there isnt much to rewrite ... you initialise some vars, draw the map, draw the player then check for keys. If a key is pressed you check the move against a tile, if you can move you do, if you cant you cant.

Of course the implementation is crappy ... but i thought it was straight-forward :).

_________________
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat 09 Jul, 2005 4:05 am 
Offline
Calc King

Joined: Sat 26 Mar, 2005 2:45 am
Posts: 1619
Location: your shadow
but you should have just drawn the character with a X*8 and a Y*8 and not used any lbls ( and combined the L/R and U/D key presses as opposed to using lbls at all)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat 09 Jul, 2005 8:59 am 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 4094
Location: I cant seem to get out of this cryogenic chamber!
Those are the exact optimisations i was talking about.

However such a program would not be fit for an example ... especially for someone who isnt a well developed BASIC programmer.

_________________
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB ® Forum Software © phpBB Group | DVGFX2 by: Matt