Show us yer programming projects!
- super charlie
- Baaaaa!

- Posts: 1809
- Joined: Wed Mar 31, 2004 7:53 pm 0
- Location: Ipswich, suffolk
- Contact:
Re: Show us yer programming projects!
New video! It's gone down pretty well actually, even got mentioned on Rock, Paper, Shotgun!
Cheers
Charlie
Cheers
Charlie
Visit my website here to have a look at my game.
- teamonkey
- 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!
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.
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.
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.
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.
Re: Show us yer programming projects!
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.
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.
弾幕 ☆ eee games ☆ smart ass no jutsu!
- _TinOmen_
- Baaaa!

- Posts: 745
- Joined: Wed Feb 12, 2003 10:52 pm 0
- Location: Stockholm, Sweden
- Contact:
Re: Show us yer programming projects!
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?
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?
Re: Show us yer programming projects!
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.
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.
弾幕 ☆ eee games ☆ smart ass no jutsu!
Re: Show us yer programming projects!
Some test data, after postprocessing


"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
- sack
- 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!
and the award for the crappiest looking SUYPP image goes to...

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:


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:

- _TinOmen_
- Baaaa!

- Posts: 745
- Joined: Wed Feb 12, 2003 10:52 pm 0
- Location: Stockholm, Sweden
- Contact:
Re: Show us yer programming projects!
You are porting an arcade game to the C64? Interesting challenge
Is the hardware compatible enough?
Is the hardware compatible enough?
- sack
- 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!
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._TinOmen_ wrote:You are porting an arcade game to the C64? Interesting challenge![]()
Is the hardware compatible enough?
Re: Show us yer programming projects!
Map editor for my upcoming game:


Re: Show us yer programming projects!
Line of code from my upcoming game:

Code: Select all
.nxtchar lda (plottbl),y ; Get character for screen update from charplot table- sack
- 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!
STA or it didn't happenIstar wrote:Line of code from my upcoming game:Code: Select all
.nxtchar lda (plottbl),y ; Get character for screen update from charplot table
Re: Show us yer programming projects!
<sigh> oh if you insist:sack wrote:STA or it didn't happenIstar wrote:Line of code from my upcoming game:Code: Select all
.nxtchar lda (plottbl),y ; Get character for screen update from charplot table
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
Do You Want To Know More?
- Muttley
- 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!
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.Istar wrote: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.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![]()
Do You Want To Know More?
Muttley's Blog: Rarely updated, occasionally interesting… maybe
RetroRemakes Framework: Open Source BlitzMax Game Framework
MuttMod: My Open Source BlitzMax Modules
RetroRemakes Framework: Open Source BlitzMax Game Framework
MuttMod: My Open Source BlitzMax Modules


