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
Loada
Baaaaa!
Baaaaa!
Posts: 1741
Joined: Sat Sep 07, 2002 2:17 pm 0
Location: North Yorkshire, UK

Re: Show us yer programming projects!

Post by Loada »

evilpaul wrote:Playing around with some ray marching in Processing. It's a form of ray tracing that is fast enough to run in real-time, even in a browser.

Image

Image

Go here to run it in your browser: http://www.openprocessing.org/visuals/?visualID=25016
Make sure you play around with m/M and f/F keys to step forwards/BACKWARDS through the various scenes and lighting modes

Source code is up there on OpenProcessing.org too
Wow, really cool.
User avatar
korruptor
Baaaaaa!
Baaaaaa!
Posts: 4291
Joined: Sun Sep 22, 2002 10:35 am 0
Location: Under The Northern Lights
Contact:

Re: Show us yer programming projects!

Post by korruptor »

andy_h wrote:

This is something I've been working on for the past month or so in my spare time, it's a remake of arguably the best game ever made for the Sinclair Spectrum, Chaos.

The twist here is that I'm playing inbetween two browsers with HTML5 websocket connections, and updating the screen with the canvas element. The game's not yet complete, there's a few spells which are missing, but there's a working game there already, albeit a sub-set of the original.

Ooo, that could be the best thing ever! :D
"Don't go into a trance boys..." :: DJ Mixes
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 »

andy_h wrote:

This is something I've been working on for the past month or so in my spare time, it's a remake of arguably the best game ever made for the Sinclair Spectrum, Chaos.

The twist here is that I'm playing inbetween two browsers with HTML5 websocket connections, and updating the screen with the canvas element. The game's not yet complete, there's a few spells which are missing, but there's a working game there already, albeit a sub-set of the original.
Wow! Very cool :)

looking forward to this!

Cheers
Charlie
Visit my website here to have a look at my game.
kevs3d
Posts: 1
Joined: Fri Apr 29, 2011 9:04 pm 0

Re: Show us yer programming projects!

Post by kevs3d »

Hi,

My first post, be gentle.

I've been working on a Geometry Wars style game in HTML5:
http://www.kevs3d.co.uk/dev/arena5
- this is only my second game so I'm still getting the hang of it - my first was an Asteroids clone (yes, yes I know, Asteroids, but apparently it's a good one to start with!)
http://www.kevs3d.co.uk/dev/asteroids

Any comments appreciated as I'm basically making this up as I go along hah. At the moment the biggest issue I see is trying to come up with a control mechanism for what should really be a "dual-stick" shooter that runs in the browser...

Cheers!

Kev
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

Those are very nice. I don't think you should worry about anyone taking you apart. You did good work.
andy_h
Baaa!
Baaa!
Posts: 174
Joined: Sun Aug 23, 2009 6:19 pm 0
XBL Gamertag: andy_h77
PSN: andyh

Re: Show us yer programming projects!

Post by andy_h »

I'm after people to playtest my chaos server, so if anyone here is familiar with the original game and interested in taking part then send me a PM with your email address and I'll reply back.
Nintendo Switch: SW-5294-9905-6499
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Re: Show us yer programming projects!

Post by sdetoni »

This might be the start of some thing .... if doesn't die in a wad of no avail time. My baby steps at blitz-max, use left or right keys to scroll, esc to exit.

Code: Select all

' Basic Fractal landscape
'-------------------------

Strict

Graphics 1024,768

Global FracDPS:Int   = GraphicsWidth()  ' detail per screen
Global FracScnNo:Int = 1   ' number of screen to render
Global FracLen:Int   = (FracDPS * FracScnNo)
Global NormalisedHeightMap1:Float[FracLen+1] ' heightmap, range is 0.0 - 1.0
Global NormalisedHeightMap2:Float[FracLen+1] ' heightmap, range is 0.0 - 1.0

Global RenderScnXPos = 0;
SeedRnd MilliSecs() 

' ----------------------------------------------------------------------------------

Function buildMap (normHighMap:Float[], startPos:Int, endPos:Int)

Local xIdx:Int  = (endPos - startPos) ' mid point in fractal array
Local diff:Float = normHighMap[startPos] - normHighMap[endPos];

	If (xIdx > 1) Then
		xIdx = startPos + (xIdx / 2)
	Else
		xIdx = startPos;		
	End If
				
	Local	r:Float 			   = RndFloat#()
	Local 	normRndDiff:Float = r / (1 / diff)
	
	normHighMap[xIdx] = normHighMap[startPos] - normRndDiff;
	
	If (xIdx <> startPos) Then
		' construct the left side
		buildMap (normHighMap, startPos, xIdx)
		' construct the right side		
		buildMap (normHighMap, xIdx, endPos)	
	End If	
End Function

' -------------------------------------------------------------------------------

Local idx:Int

For idx = 1 To FracLen Step 1
	NormalisedHeightMap1[idx] = 0
Next

' ----------------------------------------------------------------------------------


' Init fractal
NormalisedHeightMap1[1] = RndFloat#()
NormalisedHeightMap1[FracLen] = RndFloat#()
buildMap (NormalisedHeightMap1, 1, FracLen)

NormalisedHeightMap2[1] = NormalisedHeightMap1[FracLen]
NormalisedHeightMap2[FracLen] = RndFloat#()
buildMap (NormalisedHeightMap2, 1, FracLen)




Local height:Int = GraphicsWidth()
Local nhm1_xPos  = 1
Local nhm2_xPos  = 0
Local stepSpeed  = 1

While Not KeyHit( KEY_ESCAPE )

	Cls

	SetColor 0,0,255
	
	If (nhm1_xPos > 0) Then
		Local plotPos2:Int = (FracLen - nhm1_xPos)

		For idx = 0 To plotPos2 Step 1
			DrawLine idx, (NormalisedHeightMap1[nhm1_xPos+idx] * height), idx, height
		Next

		For idx = 1 To nhm1_xPos-1 Step 1
			DrawLine plotPos2+idx, (NormalisedHeightMap2[idx] * height), plotPos2+idx, height
		Next	

	Else If (nhm2_xPos > 0) Then
	   Local plotPos1:Int = (FracLen - nhm2_xPos)

		For idx = 0 To plotPos1 Step 1
			DrawLine idx, (NormalisedHeightMap2[nhm2_xPos+idx] * height), idx, height
		Next
		
		For idx = 1 To nhm2_xPos-1 Step 1
			DrawLine plotPos1+idx, (NormalisedHeightMap1[idx] * height), plotPos1+idx, height
		Next
	EndIf
		
	If (nhm1_xPos > 0) Then
		nhm1_xPos = nhm1_xPos + stepSpeed 
		If (nhm1_xPos > FracLen) Then
		    nhm1_xPos = 0
         nhm2_xPos = 1			  
			 NormalisedHeightMap1[1] = NormalisedHeightMap2[FracLen]
		    NormalisedHeightMap1[FracLen] = RndFloat#()
			 buildMap (NormalisedHeightMap1, 1, FracLen)						
		Else	If (nhm1_xPos < 1) Then
		    nhm1_xPos = 0
         nhm2_xPos = FracLen  
			 NormalisedHeightMap2[FracLen] = NormalisedHeightMap1[1]
		    NormalisedHeightMap2[1] = RndFloat#()
			 buildMap (NormalisedHeightMap2, 1, FracLen)						
		End If							
	Else If (nhm2_xPos > 0) Then
		nhm2_xPos = nhm2_xPos + stepSpeed 
		If (nhm2_xPos > FracLen) Then
		    nhm1_xPos = 1
         nhm2_xPos = 0			  
			 NormalisedHeightMap2[1] = NormalisedHeightMap1[FracLen]
		    NormalisedHeightMap2[FracLen] = RndFloat#()
			 buildMap (NormalisedHeightMap2, 1, FracLen)						
		Else	If (nhm2_xPos < 1) Then
		    nhm1_xPos = FracLen
         nhm2_xPos = 0 
			 NormalisedHeightMap1[FracLen] = NormalisedHeightMap2[1]
		    NormalisedHeightMap1[1] = RndFloat#()
			 buildMap (NormalisedHeightMap1, 1, FracLen)						
		End If			
	End If 
	
	If KeyDown (KEY_RIGHT) Then
     stepSpeed = stepSpeed + 1
	Else	If KeyDown (KEY_LEFT) Then	
     stepSpeed = stepSpeed - 1	
	End If 
	
	Flip
Wend
Attachments
frac.zip
(526.08 KiB) Downloaded 83 times
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

I have was playing this puzzle game, that has been driving me nuts.

http://www.gamedesign.jp/flash/slidingb ... block.html

I'm crap at this sort of thing, but I hate being beaten. So I did the obvious thing and got the machine to do it for me.

Sources, windows binary and solutions here:

http://www.spectral3d.co.uk/misc/block_puzzle.zip

Now it is done I never have to think about it again!
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 »

Trying to get some feedback on this: http://www.charliesgames.com/wordpress/?p=583
Should work on Mac OS, Windows and Linux.

Gratuitous pic:
Image

Cheers
Charlie
Visit my website here to have a look at my game.
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Re: Show us yer programming projects!

Post by sdetoni »

super charlie wrote:Trying to get some feedback on this: http://www.charliesgames.com/wordpress/?p=583
Should work on Mac OS, Windows and Linux.
looks like a pretty awesome procedural generate graphical bullet hell game.
User avatar
fritx
Troll (2/10)
Posts: 912
Joined: Tue May 20, 2003 11:51 am 0
Location: Airstrip One
Contact:

Re: Show us yer programming projects!

Post by fritx »

super charlie wrote:Trying to get some feedback on this: http://www.charliesgames.com/wordpress/?p=583
Should work on Mac OS, Windows and Linux.

Cheers
Charlie
Looks great here (2006 Mac Pro with Radeon X1900) solid 60 fps.

Plays very nicely with the Magic Trackpad too. 0.95 sensitivity suited me well.
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 »

fritx wrote:
super charlie wrote:Trying to get some feedback on this: http://www.charliesgames.com/wordpress/?p=583
Should work on Mac OS, Windows and Linux.

Cheers
Charlie
Looks great here (2006 Mac Pro with Radeon X1900) solid 60 fps.

Plays very nicely with the Magic Trackpad too. 0.95 sensitivity suited me well.
Trackpad thing is good to know, thanks :)

Cheers
Charlie
Visit my website here to have a look at my game.
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12524
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Re: Show us yer programming projects!

Post by tufty »

Bullet hell stuff isn't really my bag, but that's frickin' beautiful. A solid 60fps on my iMac (2.8 Ghz core 2 duo, 10.6.7). Needed to boost the mouse speed for my trackball, but I always do.
"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
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 »

tufty wrote:Bullet hell stuff isn't really my bag, but that's frickin' beautiful. A solid 60fps on my iMac (2.8 Ghz core 2 duo, 10.6.7). Needed to boost the mouse speed for my trackball, but I always do.
Cheers, glad you like it :)

The mouse control is pretty much just to make things easier to control, thus, in theory, lower the barrier of entry to less hardcore players. Plus, i'd like to have a go at an iOS game, and mousey stuff tends to transfer better to touchscreen.

Cheers
Charlie
Visit my website here to have a look at my game.
IMAP
Baa!
Baa!
Posts: 47
Joined: Sun Aug 12, 2007 8:44 pm 0
Location: Jarrow

Re: Show us yer programming projects!

Post by IMAP »

To take my mind off my car licence related problems I've spent this afternoon almost completing a Qix/Zolyx clone in C++.
I'll finish it off just as soon as I've sorted out my car woes!
Attachments
qix.zip
(6.25 KiB) Downloaded 53 times
Post Reply