Show us yer programming projects!
Re: Show us yer programming projects!
theres this sinatra he mentions as a rails alternative, has anyone tried that?
http://www.sinatrarb.com/intro.html
http://www.sinatrarb.com/intro.html
- 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 looked at it a couple of months back when I was evaluating web frameworks. It's very barebones. Sure you can develop web apps in it, but it's way too low-level for me. The stuff that it does (routing, passing through a template or caching engine) is fairly trivial, IMO.
Where Rails wins for me is how easy it makes all the boring, complex, time-consuming stuff like admin interfaces, authentication, database abstraction, and stuff like that. You'd be writing all that from scratch in Sinatra.
Where Rails wins for me is how easy it makes all the boring, complex, time-consuming stuff like admin interfaces, authentication, database abstraction, and stuff like that. You'd be writing all that from scratch in Sinatra.
Re: Show us yer programming projects!
Righto then, this is what months of reading about python and pygame and doing Udacity CS101 has led up to. It's horrendous-looking code, and needs a serious tidy up and a bit of fixing the comments, but it mostly does what I want it to do, so far... I'm having a bit of a break and a think about what direction I want to go in, while I steel myself for the tidying. (I hate tidying).
This is probably the longest program I've came up with ever so far, and it's been simultaneously harder and easier than I thought it'd be. I've been taking it in chunks, with a couple of days of think time between each. chunk 1: make a screen, chunk 2: get the joypad doing something, chunk 3: make a controllable player, chunk 4: make an enemy, chunk 5: make the bullets (big deal, this part - had to use OOP __init__ stuff), chunk 6: make more enemies using the same technique I used to make all those bullets, chunk 7: collision detection....
You'll need a twin-stick joypad plugged in to 'play', and if you don't have any sort of joystick plugged in at all, all you'll get is error messages.
This is probably the longest program I've came up with ever so far, and it's been simultaneously harder and easier than I thought it'd be. I've been taking it in chunks, with a couple of days of think time between each. chunk 1: make a screen, chunk 2: get the joypad doing something, chunk 3: make a controllable player, chunk 4: make an enemy, chunk 5: make the bullets (big deal, this part - had to use OOP __init__ stuff), chunk 6: make more enemies using the same technique I used to make all those bullets, chunk 7: collision detection....
You'll need a twin-stick joypad plugged in to 'play', and if you don't have any sort of joystick plugged in at all, all you'll get is error messages.
Spoiler: show
I made a deviantart page.
'....The baron is a gay old rogue with an eye for the ladies....'
'....The baron is a gay old rogue with an eye for the ladies....'
Re: Show us yer programming projects!
Been pratting around doing fun stuff to SpecBAS instead of grunt work 
This is a couple of commands that take an array of points and spit out transformed and projected 2D points, which can be plotted all in one go
This is ace, I love having my own language to mess around with!
This is a couple of commands that take an array of points and spit out transformed and projected 2D points, which can be plotted all in one go
This is ace, I love having my own language to mess around with!
"Oh dear lord, I slightly soiled myself. Oxfam won’t be pleased."
Re: Show us yer programming projects!
Fuck! And I'm pleased when I get a bunch of rectangles to follow a square ... 
(Edit)... move closer to a square, I mean... getting stuff to *follow* it is a whole other level.
.
(Edit)... move closer to a square, I mean... getting stuff to *follow* it is a whole other level.
.
I made a deviantart page.
'....The baron is a gay old rogue with an eye for the ladies....'
'....The baron is a gay old rogue with an eye for the ladies....'
Re: Show us yer programming projects!
I thought it was really quite ace that you could post the code in a spoiler tagtoxibunny wrote:Fuck! And I'm pleased when I get a bunch of rectangles to follow a square ...
(Edit)... move closer to a square, I mean... getting stuff to *follow* it is a whole other level.
.
To be fair, I've been writing this BASIC interpreter for a couple of years now. It's maturing nicely, but every now and then I get the urge to add commands that are really specific and quite hatstand - and I really wanted a galaxy-like effect after I saw one in an Amiga demo
"Oh dear lord, I slightly soiled myself. Oxfam won’t be pleased."
Re: Show us yer programming projects!
Hatstand away, my good man. Hatstand away... well, maybe you're beyond the hatstand, the cloakroom, the mansion, and *everything*, if you can make *that* come out of spectrum BASIC!
...I know it's your own implementation, I've seen various progress reports, etc. over the years... but holy hell, man! very, very impressive... both in the idea, and the accomplishment...
...as for 'putting stuff in the spoiler/code tags'... I know! The year is 2012, Isotonic drinks are already old-fashioned, we've invented flying cars and discovered they're not practical, and nowadays we swap code through spoiler tags
...I was just copying off sdetoni though...
...I know it's your own implementation, I've seen various progress reports, etc. over the years... but holy hell, man! very, very impressive... both in the idea, and the accomplishment...
...as for 'putting stuff in the spoiler/code tags'... I know! The year is 2012, Isotonic drinks are already old-fashioned, we've invented flying cars and discovered they're not practical, and nowadays we swap code through spoiler tags
...I was just copying off sdetoni though...
I made a deviantart page.
'....The baron is a gay old rogue with an eye for the ladies....'
'....The baron is a gay old rogue with an eye for the ladies....'
- nyarla
- 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:
Re: Show us yer programming projects!
Not much spare time, slooow going with my 3D game, but I'm pleased with it so far..
First I messed around with having enemies as billboarded sprites, but it looked horrible when viewing an enemy from above or below.. (partially because me not art good, and drawing a 2d sprite as seen from above is hard! partially because it destroyed any feel that the enemy was "in the world", due to perspective.. kinda thing.. viewed from the sides it was cool, but from above it was very obvious that it's a flat rectangle floating above the ground..).
I don't want to have actual proper 3D models, I want sprites. Also, don't want to put in the time to learn how to model. So I went for halfway between the two - 3D "models" made of billboards... (just a single test model so far, spinning shiny balls!).

Doing it this way is going to somewhat dictate the art style.. might be impossible to do certain things.. not sure yet (looks pretty cool though, and coherent in 3D space).. But this is meant to be a JRPG so having abstract representations of enemies in-the-world is cool. When you go up to fight 'em it could switch to BATTLE MODE and have the actual enemy gfx in 2D. Or something.
Finally got around to making it build for iOS and OSX from the same source/Xcode project yesterday, sooo much less hassle \o/ So now it's time to make in-game editing tools so I can easily mess around with these weird fake 3D models and see if it's going to work..
(Also, thinking of using this engine to do 7 DAY FPS CHALLENGE and make some stupid FPS. http://7dfps.org/ anyone else going to have a go?)
First I messed around with having enemies as billboarded sprites, but it looked horrible when viewing an enemy from above or below.. (partially because me not art good, and drawing a 2d sprite as seen from above is hard! partially because it destroyed any feel that the enemy was "in the world", due to perspective.. kinda thing.. viewed from the sides it was cool, but from above it was very obvious that it's a flat rectangle floating above the ground..).
I don't want to have actual proper 3D models, I want sprites. Also, don't want to put in the time to learn how to model. So I went for halfway between the two - 3D "models" made of billboards... (just a single test model so far, spinning shiny balls!).

Doing it this way is going to somewhat dictate the art style.. might be impossible to do certain things.. not sure yet (looks pretty cool though, and coherent in 3D space).. But this is meant to be a JRPG so having abstract representations of enemies in-the-world is cool. When you go up to fight 'em it could switch to BATTLE MODE and have the actual enemy gfx in 2D. Or something.
Finally got around to making it build for iOS and OSX from the same source/Xcode project yesterday, sooo much less hassle \o/ So now it's time to make in-game editing tools so I can easily mess around with these weird fake 3D models and see if it's going to work..
(Also, thinking of using this engine to do 7 DAY FPS CHALLENGE and make some stupid FPS. http://7dfps.org/ anyone else going to have a go?)
- Orangy Tang
- Baaaaa!

- Posts: 1794
- Joined: Sun Apr 25, 2004 5:25 pm 0
- Location: My secret lab
- Contact:
Re: Show us yer programming projects!
Looks good! Also reminds me of Ballz as well.nyarla wrote: Doing it this way is going to somewhat dictate the art style..
[ Triangular Pixels.net - play Snowman Village, Rescue Squad, NiGHTS 4k and more ] [ Development Journal ]
Re: Show us yer programming projects!
I remember reading that id software experimented with occasionally rendering 3D models to sprites when they were developing quake.
i.e. render model, use it until the viewpoint changes too much, re render etc... Apparently it gave a billboarded look and they decided it was crap, but if that's the style you want then it might work.
i.e. render model, use it until the viewpoint changes too much, re render etc... Apparently it gave a billboarded look and they decided it was crap, but if that's the style you want then it might work.
Re: Show us yer programming projects!
Yeah we'v done that on a game when I was at Climax, PS2 ATV Fury I think. It can work well. We had a bunch of ATV riders spread around a track so off in the distance we'd render them on a billboard and low rendering frequency. It worked really well. It's an old trick called impostors.GoatFoam wrote:I remember reading that id software experimented with occasionally rendering 3D models to sprites when they were developing quake.
i.e. render model, use it until the viewpoint changes too much, re render etc... Apparently it gave a billboarded look and they decided it was crap, but if that's the style you want then it might work.
Here's a video of someone using it with world environment:
http://www.youtube.com/watch?v=BbP0MNKGMsE
Re: Show us yer programming projects!
Of course. I had just forgotten the word 
- nyarla
- 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:
Re: Show us yer programming projects!
oh i'm not doing anything anywhere near as fancy as impostors
just "models" made of a bunch of billboards positioned in 3d space. it's all impostor, all the time (much like my whole game dev career \o/)
yeah that BALLZ is exactly the idea. though i'm also not doing anything as fancy as that animation. and things aren't going to all be made of balls... these shiny balls are just a test! (this technique is going to look really weird doing anything with image components which aren't symmetrical.... so i'll probably just end up using it to make abstract whirly things...)
(the reason normal plain old every day billboard sprites aren't good enough is that you can walk on the walls and ceiling in this game - that's why you can see a creature from above or below as well as front/back/left/right)
yeah that BALLZ is exactly the idea. though i'm also not doing anything as fancy as that animation. and things aren't going to all be made of balls... these shiny balls are just a test! (this technique is going to look really weird doing anything with image components which aren't symmetrical.... so i'll probably just end up using it to make abstract whirly things...)
(the reason normal plain old every day billboard sprites aren't good enough is that you can walk on the walls and ceiling in this game - that's why you can see a creature from above or below as well as front/back/left/right)
Re: Show us yer programming projects!
If your billboard scheme is going to force you into using geometric patterns, why not go the whole hog and programatically generate geometric 3D objects?
- nyarla
- 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:
Re: Show us yer programming projects!
oh i tried that first (only quickly and very simply though) but didn't like what i came up with.. might try it again later. i'm not unhappy with this billboard model thing btw, sorry if i gave that impression. i really like how it looks.. will still use it for SOMETHING even if i end up coming up with something better...
i don't mean it forces use of geometric patterns - it doesn't.. i meant that, because the billboards are currently always facing and aligned with the camera, if a billboard texture isn't symmetrical-ish, it looks weird when a creature moves onto a wall - the positions of its "body parts" move accordingly, but the orientation of each body part doesn't change. i want to find a way to make use of this to make it look weird in a consistent/pleasing way. (gotta make model editor so i can easily play and see what's possible)
might combine the billboard models with rotation of billboards (when needed, for some kinds of object/creature).. when i first tried single billboard enemies it was before i'd figured out how to do this matrix rotation properly, so it was all higgledy piggledy @_@
i don't mean it forces use of geometric patterns - it doesn't.. i meant that, because the billboards are currently always facing and aligned with the camera, if a billboard texture isn't symmetrical-ish, it looks weird when a creature moves onto a wall - the positions of its "body parts" move accordingly, but the orientation of each body part doesn't change. i want to find a way to make use of this to make it look weird in a consistent/pleasing way. (gotta make model editor so i can easily play and see what's possible)
might combine the billboard models with rotation of billboards (when needed, for some kinds of object/creature).. when i first tried single billboard enemies it was before i'd figured out how to do this matrix rotation properly, so it was all higgledy piggledy @_@




