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
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Re: Show us yer programming projects!

Post by super charlie »

New video! It's gone down pretty well actually, even got mentioned on Rock, Paper, Shotgun!



Cheers
Charlie
Visit my website here to have a look at my game.
User avatar
oddbob0
Baaaaa!
Baaaaa!
Posts: 1727
Joined: Mon Mar 01, 2004 7:43 pm 0
Location: Liverpool

Re: Show us yer programming projects!

Post by oddbob0 »

Well, it *is* ace looking.
\m/
User avatar
teamonkey
Sheepie Whore
Sheepie Whore
Posts: 12082
Joined: Thu Jun 13, 2002 1:07 am 0
XBL Gamertag: itsthetaste
PSN: teamonkey_ca
Contact:

Re: Show us yer programming projects!

Post by teamonkey »

I needed to create a vector graphic file this weekend and decided it was best to do it in SVG (good idea) and generate the output in scheme (really stupid bad idea).

Jesus Christ. I've never used scheme's IO in anger before. It is *terrible*, even worse than C's. R5RS's number output formatting is incompatible with XML. R6RS's file handling is complicated and there are no examples online. A really horrible experience. :x

The actual algorithm was super-easy to do in scheme of course. I would have saved time porting it to Ruby though, rather than pressing on with the IO in scheme.
User avatar
oNyx
Baaaaa!
Baaaaa!
Posts: 1652
Joined: Mon Sep 08, 2003 1:24 am 0
Location: de/fd

Re: Show us yer programming projects!

Post by oNyx »

http://mbtic.com/ddd (JavaScript/Canvas)
http://mbtic.com/ddd-flash (Flash - well, duh :))

Same game code. Flash version isn't playable right now, lacks input (and sound).

But this is the big idea, basically. Aiming for standards, but having a Flash fallback without having to rewrite the damn thing.
User avatar
_TinOmen_
Baaaa!
Baaaa!
Posts: 745
Joined: Wed Feb 12, 2003 10:52 pm 0
Location: Stockholm, Sweden
Contact:

Re: Show us yer programming projects!

Post by _TinOmen_ »

Fun little game oNyx :)

How do you achieve this dual-platform code? I understand JavaScript and ActionScript is basically the same but you must have some kind of framework that's available for both platforms, did you write that yourself?
User avatar
oNyx
Baaaaa!
Baaaaa!
Posts: 1652
Joined: Mon Sep 08, 2003 1:24 am 0
Location: de/fd

Re: Show us yer programming projects!

Post by oNyx »

Yes, there is some sound wrapping on both sides and Canvas "emulation" on the Flash side. Basically I made something over there that just behaves like a Canvas object. It's still missing a few bits, but it's getting there.

Packaging and compression is also fully automated. I only need to put some image into some directory (e.g. "foo.png"), then I can switch over to my code and write something like:

ctx.drawImage(media.image.foo, x, y);

Then switch over to the browser, hit F5, and there it is!

Same thing with sound. Throw the file into the directory...

media.audio.bar.play();

... and the sound plays. (If none of the codecs is supported, you get a no-audio blob, which means you get a dummy object whose play function doesn't do anything.)

The plan is to build it as I go. Once I've written 2-3 complete games everything should be in a pretty good shape. I plan to release it then as complete, easy to use, and completely documented package.
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12525
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Re: Show us yer programming projects!

Post by tufty »

Some test data, after postprocessing

Image
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
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:

Re: Show us yer programming projects!

Post by sack »

and the award for the crappiest looking SUYPP image goes to...

Image

Load a 6502 MAME ROM into the right place in memory, patch a bit so it doesn't use 0/1 in the zeropage, fire off an interrupt to trigger the original code VSYNCs, copy joystick input and video output to the appropriate places... Despite the lack of properly defined graphics there's the arcade version of scrambled egg running in that screenshot.

Next step is to try and make it look increasingly like this:

Image
User avatar
_TinOmen_
Baaaa!
Baaaa!
Posts: 745
Joined: Wed Feb 12, 2003 10:52 pm 0
Location: Stockholm, Sweden
Contact:

Re: Show us yer programming projects!

Post by _TinOmen_ »

You are porting an arcade game to the C64? Interesting challenge :)
Is the hardware compatible enough?
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:

Re: Show us yer programming projects!

Post by sack »

_TinOmen_ wrote:You are porting an arcade game to the C64? Interesting challenge :)
Is the hardware compatible enough?
The ROM sits where there's RAM on the c64 ($3000-$8000), nearly all of the zeropage gets used (but it was trivial to patch up a disassembly to relocate writes to $0/1 elsewhere) - the screen is a bit taller than on a c64, but I'm working on a solution to that at the moment. The worst part could've been the sprites - but the machine only has 8 sprites, so that is a fairly trivial problem.
User avatar
noodles
Baaaaaa!
Baaaaaa!
Posts: 2053
Joined: Wed May 15, 2002 1:04 pm 0
Location: France

Re: Show us yer programming projects!

Post by noodles »

Map editor for my upcoming game:
Image
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Show us yer programming projects!

Post by Istar »

Line of code from my upcoming game:

Code: Select all

.nxtchar    lda (plottbl),y      ; Get character for screen update from charplot table
;)
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:

Re: Show us yer programming projects!

Post by sack »

Istar wrote:Line of code from my upcoming game:

Code: Select all

.nxtchar    lda (plottbl),y      ; Get character for screen update from charplot table
;)
STA or it didn't happen :)
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Show us yer programming projects!

Post by Istar »

sack wrote:
Istar wrote:Line of code from my upcoming game:

Code: Select all

.nxtchar    lda (plottbl),y      ; Get character for screen update from charplot table
;)
STA or it didn't happen :)
<sigh> oh if you insist:

Code: Select all

.nxtchar    lda (plottbl),y      ; Get character for screen update from charplot table
            sta (scrnpos),y      ; Update screen
            txa                  ; Get pre-masked character colour saved in .X
            sta (colrpos),y      ; Update colour
            dey                  ; Decrement ZP indirect offset
            bpl .nxtchar         ; Loop until all chars copied
This is actually from the revision before last, copying single-colour blocks of (possibly) variable characters; it can now copy the same character multiple times without having to re-acquire it through the ZP indirection on every iteration, and can also now, conversely, change the colour on every character copied (or generated, if repeating the same one several times). As well as a whole bunch of other stuff. :wink:

Do You Want To Know More?
User avatar
Muttley
Sheepie Whore
Sheepie Whore
Posts: 13169
Joined: Thu Apr 25, 2002 12:30 pm 0
XBL Gamertag: Mu77ley
Location: In a maze of twisty passages, all alike.
Contact:

Re: Show us yer programming projects!

Post by Muttley »

Istar wrote:

Code: Select all

.nxtchar    lda (plottbl),y      ; Get character for screen update from charplot table
            sta (scrnpos),y      ; Update screen
            txa                  ; Get pre-masked character colour saved in .X
            sta (colrpos),y      ; Update colour
            dey                  ; Decrement ZP indirect offset
            bpl .nxtchar         ; Loop until all chars copied
This is actually from the revision before last, copying single-colour blocks of (possibly) variable characters; it can now copy the same character multiple times without having to re-acquire it through the ZP indirection on every iteration, and can also now, conversely, change the colour on every character copied (or generated, if repeating the same one several times). As well as a whole bunch of other stuff. :wink:

Do You Want To Know More?
Cool, I really should pick up my c64 coding project again. Won't have any an excuse soon as I will have my new (hehe) C128D permanently set up and will have a new cartridge that I can use to slurp files from USB. ;)
Muttley's Blog: Rarely updated, occasionally interesting… maybe
RetroRemakes Framework: Open Source BlitzMax Game Framework
MuttMod: My Open Source BlitzMax Modules
Post Reply