pouët.net

Need programming help.

category: general [glöplog]
iq: yes. quite. just not for people who get easily frustrated with things. old computer basic was good for that, working straight out of the box. nowdays compilers and work environments are a bitch to work out, all the modules and compiling options and depency horseshit, thats where processing shines, removes the complexity from graphical coding. or atleast thats what they were attempting to achieve.
added on the 2008-03-15 14:46:00 by psenough psenough
ps and iq: jep, processing is what we programming nerd-bergs would call a domain specific language :-)
added on the 2008-03-15 15:10:58 by xyz xyz
locomotive basic o/
added on the 2008-03-15 15:15:04 by faraday faraday
hermes, wow, you know a cs term!
added on the 2008-03-15 15:18:09 by skrebbel skrebbel
..isn't it unbelievable, bob (erm. skrebbel) ?!! :-)
added on the 2008-03-15 15:21:14 by xyz xyz
from "adok's way to point dispalcement" tutorial: for kids:

if moving 10 pixel down leads to (x, y-10) and moving 10 pixel left leads to (x-10,y), then moving 10 pixel half down half left leads to (x-5, y-5). moving 10 pixel a quarter down and three quarters left leads to (x-7.5, y-2.5)
added on the 2008-03-15 15:22:38 by rmeht rmeht
well, that figures.
if you think about it.
for some time.
:P

now if someone could just post a picture/animation of that moving pixel, pleez.

added on the 2008-03-15 15:26:24 by xyz xyz
Cheers for the info guys, i'll look into that processing. Do any of you lot use it to create demos? *ducks*
10 CLEAR
20 MODE 11
21 cx=400:cy=200:tl=50
22 x1=0:y1=0:MOVE cx+x1,cy+y1
23 DIM cap(tl,1)
24 DIM cap1(tl,1)
40 x1=10*COS(b*PI/180)
50 y1=10*SIN(b*PI/180)
51 COLOR 0
52 cxx=cx+x1:cyy=cy+y1
80 DRAW cxx,cyy
81 cx=cx+x1:cy=cy+y1
90 IF b=>10000 THEN END
101 c=INT(RND*15)+1
102 b=b+c
110 FOR l=1 TO 500000: NEXT l
120 d=d+1
130 IF d=tl THEN d=0
140 cap(d,0)=cxx:cap(d,1)=cyy
141 cap1(d,0)=cx:cap1(d,1)=cy
150 del=d+1
160 IF del=tl THEN del=0
170 COLOR 15
180 MOVE cap(del,0),cap(del,1)
181 DRAW cap1(del,0),cap1(del,1)
182 MOVE cxx,cyy
190 GOTO 40

Bugger! It's supposed to erase the blasted line, but it doesn't do it properly
What kind of Basic are you programming, seeing that you are using line numbers?
added on the 2008-03-16 00:01:29 by Alpha C Alpha C
It's called Blassic, about the only thing similar to what i used to do.

I can get the initial lines to join, but deleting them is a bit trickier. It works ok for points, but not joined lines. Knowing my luck, it's something bloody simple.
I started out in qbasic, the jump up to tinyptc (software-rendering) and c isn't that hard.
added on the 2008-03-16 02:55:13 by quisten quisten
QBASIC -> C on GBA here. Took a few months to get familiar with a new language and being close to the hardware, but that was when I was 13-14 (I'm borderline retarded anyway). Was well worth it though.
Stuck to Basic almost my entire life ;).
Started with C64 Basic, then QBasic/QuickBasic when I moved to PC, now doing VB.NET. Not democoding though, the closest thing to doing that is coding a musicdisk for my lame music group. :)
For some reason C-like languages just don't 'click' with me.

8-bit buggery, I'll look at your code tomorrow, it's late now and the alcohol is starting to take effect :). Nice to see some some sceners still trying their luck in Basic at least!
Have you tried Freebasic or other Qbasic-derivatives, incidentally?
added on the 2008-03-16 04:55:14 by Alpha C Alpha C
you're already on the next line segment when you invoke 180 and 181, thats why it's not deleting the old line.

180 MOVE cap1(del,0),cap1(del,1)
181 DRAW cap(del,0),cap(del,1)

instead of

180 MOVE cap(del,0),cap(del,1)
181 DRAW cap1(del,0),cap1(del,1)

might do the trick

could probably be optimized to not do the extra move, but im not sure if drawing in blassic also moves your position or not.
added on the 2008-03-16 09:36:54 by psenough psenough
i've an idea that the BASIC users here don't really see that in fact people tend to use the programming language that makes the task at hand easiest. c++ isn't more difficult than BASIC. and, in fact I'm pretty sure that doing 3d graphics on c/c++/c# is actually a lot easier than in VB. Which is why nobody uses vb for demos.

Basically, i'm pretty sure that if you're able to get opengl and all that crap running in VB, then you're also able to learn c# in a day or two.
added on the 2008-03-16 10:15:17 by skrebbel skrebbel
calling c++ anything else than difficult is a huge understatement
added on the 2008-03-16 11:39:49 by _-_-__ _-_-__
what skrebbel said.
added on the 2008-03-16 11:42:54 by nystep nystep
knos, c# then. basic isn't very basic the moment you start doing stuff with it that isn't basic.
added on the 2008-03-16 11:50:49 by skrebbel skrebbel
Funny you should say that! ^^
There is a difference between "easy to learn" and "easy to use". I've always valued QBASIC because I haven't seen another language that's easier or faster to learn. But yeah, it's really hard to do anything substantial with it. I remember seeing a module player done in QuickBASIC, and people were freaking out at how amazing it is that someone managed to do it in QuickBASIC.

Legos are easy to learn and build with, but try building a working radio receiver out of them.
added on the 2008-03-16 12:16:46 by yesso yesso
word.
added on the 2008-03-16 12:19:01 by skrebbel skrebbel
Lolz! Well, I sorted it anyways, got the logic the wrong way around, duh!
10 CLEAR
20 MODE 11
21 cx=400:cy=200:tl=50
22 x1=0:y1=0:MOVE cx+x1,cy+y1
23 DIM cap(tl,1):DIM cap1(tl,1)
40 x1=10*COS(b*PI/180)
50 y1=10*SIN(b*PI/180)
51 COLOR 0
52 cxx=cx+x1:cyy=cy+y1
80 DRAW cxx,cyy
90 IF b=>10000 THEN END
101 c=INT(RND*15)+1
102 b=b+c
110 FOR l=1 TO 10000:NEXT l
120 d=d+1
130 IF d=tl THEN d=0
132 cap(d,0)=cxx:cap(d,1)=cyy:cap1(d,0)=cx:cap1(d,1)=cy
150 del=d+1
160 IF del=tl THEN del=0
161 COLOR 15
180 MOVE cap(del,0),cap(del,1)
181 DRAW cap(del,0),cap(del,1)
182 DRAW cap1(del,0),cap1(del,1)
183 cx=cx+x1:cy=cy+y1
184 MOVE cxx,cyy
190 GOTO 40
Line 183 was being executed too early. Boy am i pleased with myself. lol
Quote:
Have you tried Freebasic

FreeBASIC is the way to go :)
Quote:
calling c++ anything else than difficult is a huge understatement


i'll go further and say that programming in general is so often understimated it hurts

"the humble programmer", often the best ones.


added on the 2008-03-16 21:33:50 by superplek superplek

login