Show us yer programming projects!

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8447
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Post by KlaxonCow »

RatZiggurat wrote:It maps well to the mind, in a linear, addressable fashion.
Well, that would all depend on what kind of mind a person's got, surely?

Crazy folk tend to think a might bit "non-linear", so to speak, in my experience. :wink: :lol:
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Post by Istar »

Barney wrote:While we're on about Brainfuck...

Here's my interpreter in Sinclair BASIC :-)

Code: Select all

  10 REM Brainfuck Interpreter By Paul Dunn
  20 etc...
The m/c at the end is just a fast way of clearing the 30kb of memory used. The actual bf program code is in c$ in line 40.
Bug?

Code: Select all

 210 LET e=e+1: IF c$(e)="[" THEN LET b=b+1
 220 IF c$(e)="]" THEN LET b=b-1: IF b=0 THEN RETURN
 230 GO TO 220
Should be this, surely?

Code: Select all

 210 LET e=e+1: IF c$(e)="[" THEN LET b=b+1
 220 IF c$(e)="]" THEN LET b=b-1: IF b=0 THEN RETURN
*230 GO TO 210
User avatar
Barney
Baaaaaa!
Baaaaaa!
Posts: 2131
Joined: Tue Aug 23, 2005 7:59 pm 0
Location: UK, Broughton, Brigg

Post by Barney »

Istar wrote: Bug?

Code: Select all

 210 LET e=e+1: IF c$(e)="[" THEN LET b=b+1
 220 IF c$(e)="]" THEN LET b=b-1: IF b=0 THEN RETURN
 230 GO TO 220
Should be this, surely?

Code: Select all

 210 LET e=e+1: IF c$(e)="[" THEN LET b=b+1
 220 IF c$(e)="]" THEN LET b=b-1: IF b=0 THEN RETURN
*230 GO TO 210
It should indeed :-)

Well spotted - interestingly enough, it's never cropped up! And it's been tested with a few pieces of code too...

The "Hello World!?" it produces is terminated by a $13$10, which of course is not used on a Speccy.

Edit: Holy hell, I'm crap today. That should of course be #10#13.

D.
Last edited by Barney on Sat Feb 03, 2007 1:01 am 0, edited 1 time in total.
User avatar
_TinOmen_
Baaaa!
Baaaa!
Posts: 745
Joined: Wed Feb 12, 2003 10:52 pm 0
Location: Stockholm, Sweden
Contact:

Post by _TinOmen_ »

Suggestion for new Yak yak tagline: One of the last places in the world where you can get your ZX Spectrum Basic programs fixed!
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Post by GoatFoam »

Sorry to bang on about missile command again.

but entirely unexpectedly a copy of my old multiplayer version has turned up. A mate of mine had it in an old backup :)

If you want a go you need a bit of a retro setup, but that shouldn't be a problem round here :)

You need: Two or more pcs of 486 DX4-120 speed or better, running dos with IPX. Windows 95 and 98 work too, but you won't get it to run under nt, xp, win2k or vista. The machines must be on the same network segment.

Details in the readme file.
Attachments
nstrike.zip
(199.64 KiB) Downloaded 90 times
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Post by GoatFoam »

Some progress:

Image
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Post by sack »

RatZiggurat wrote:As much as people harp on about oldskool BASIC being crap, and line numbers and GOTOs being the spawn of the devil, I always find that line-numbered code really easy to read and follow. :) It maps well to the mind, in a linear, addressable fashion.
that and commodore basic v2 was damn near just PEEK, POKE and flow control, so it just softened you up a little for 6502 assembler :)
User avatar
The Caffeine Kid
Baaaaaaa!
Baaaaaaa!
Posts: 5691
Joined: Mon Mar 01, 2004 9:24 pm 0
XBL Gamertag: TheCaffeineKid
PSN: caffeinekid
Yahoo Messenger: caffeinekid
Location: Wakefield
Contact:

Post by The Caffeine Kid »

Stack Attack, the anti-casual gaming match game. ;)

Image

News item for it on oddbob's blog - Gibber: Anti-Casual
Life... Don't talk to me about life...

http://www.tcksoft.co.uk
http://www.retroremakes.com
User avatar
nyarla
Baaaaaa!
Baaaaaa!
Posts: 2820
Joined: Tue Jan 14, 2003 1:53 pm 0
Location: i said kiss me you're beautiful these are truly the last days
Contact:

Post by nyarla »

cool Caffeine Kid :) i'm too scared to play it though. when i played that early demo you put up ages ago it stressed me out. a lot. even more than scary FPSs do!
User avatar
ArcadeJunkiez
Posts: 1
Joined: Sat Dec 30, 2006 9:53 am 0

Post by ArcadeJunkiez »

Encounter Zone for the Dreamcast and PC:

Image

AJ
User avatar
The Caffeine Kid
Baaaaaaa!
Baaaaaaa!
Posts: 5691
Joined: Mon Mar 01, 2004 9:24 pm 0
XBL Gamertag: TheCaffeineKid
PSN: caffeinekid
Yahoo Messenger: caffeinekid
Location: Wakefield
Contact:

Post by The Caffeine Kid »

nyarla wrote:cool Caffeine Kid :) i'm too scared to play it though. when i played that early demo you put up ages ago it stressed me out. a lot. even more than scary FPSs do!
First game to feature brown noise and be used by the military as a weapon. ;)
Life... Don't talk to me about life...

http://www.tcksoft.co.uk
http://www.retroremakes.com
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Post by piku »

The Caffeine Kid wrote:
nyarla wrote:cool Caffeine Kid :) i'm too scared to play it though. when i played that early demo you put up ages ago it stressed me out. a lot. even more than scary FPSs do!
First game to feature brown noise and be used by the military as a weapon. ;)
I think I must be a bit weird then. I found it quite a fun game to play :)
return (0);
User avatar
moosedude
Baaaaaaa!
Baaaaaaa!
Posts: 6209
Joined: Fri Nov 19, 2004 1:19 pm 0
Location: Craggy Island
Contact:

Post by moosedude »

Image

I'm not going to explain what this is (although if you've been following some of my posts here over some time, you should be able to work it out), but it allows me to start putting lots of different development projects, into one project. I ended up working from a matlab program to get it working in C++, to help me understand the algorithms involved, well the fast version of the algorithm. this still isn't quite what I want, but its proof of concept and I can tweak it as I go along. This is Log Gabor as oppose to Gabor, the filter is defined in the frequency domain, and I should be able to construct some fancy lookup tables as these are computed on the fly at the moment.

01000101 01000100 01000111 01000101

http://www.redbubble.com/people/fotofill/ buy my photos!
User avatar
Dvorak
Baaaaaa!
Baaaaaa!
Posts: 4560
Joined: Wed May 08, 2002 7:37 am 0
Yahoo Messenger: d3dxquaternion
Location: Germany

Post by Dvorak »

moosedude wrote:Image

I'm not going to explain what this is
That's unfair, man, and you know it... :D

I assume audio (not video), and recognising (not generation)? Hm? Any hints?
>take off sunglasses
Seamen and fishermen alike swear to have heard voices in the rising tide. Inhuman screams, some of them say.
User avatar
Dvorak
Baaaaaa!
Baaaaaa!
Posts: 4560
Joined: Wed May 08, 2002 7:37 am 0
Yahoo Messenger: d3dxquaternion
Location: Germany

Post by Dvorak »

Image

First Light. :)
My new graphics engine does something.
Not much after two days work - but at least something.

I binned my old concept from earlier in this thread and started a fresh approach that looks much more promising.
Just like my old machine this is a frameless octree raytracer with reprojection - but now with a more sophisticated sampling system. Oh, and a much better reconstructor.
Why did nobody tell me about point sprites before?
Can't wait to use vertex shaders for the filtering... 8)
>take off sunglasses
Seamen and fishermen alike swear to have heard voices in the rising tide. Inhuman screams, some of them say.
Post Reply