Ants! - Quick Worms Clone ;)

Community Forums/Showcase/Ants! - Quick Worms Clone ;)

therevills(Posted 2010) [#1]
Using Matt's 2d deformable terrain code:

http://www.blitzmonkeys.com/index.php?topic=426.0

I've cooked this up in a few hours: ANTS!

Video of Ants:




Exe, Blitz Max Source and Graphics:

http://sites.google.com/site/therevillsgames/blitz/Ants.zip

Aim using the mouse, left clicks fires, cursor keys to move - one short then its the next player's turn...

Feel free to update and modify the code :D

Ants.bmx


game.bmx ** UPDATED 11/04/10 **


sprite.bmx


terrainLines.bmx ** UPDATED 9/05/10 **


Last edited 2012


_Skully(Posted 2010) [#2]
Not sure why but this is CRAWLING on my laptop. Mind you I think my video card hates DX... OpenGL is an order of magnitude faster and yes, I have updated them and my video drivers :)


GfK(Posted 2010) [#3]
Not sure why but this is CRAWLING on my laptop
They're meant to crawl - they're ants.


therevills(Posted 2010) [#4]
How does it run for everyone else? Whats your specs Skully?


Taron(Posted 2010) [#5]
RUns fine here, I'd say it's a great inspiration! I used to absolutely love worms! We had a giant blast with it...replaced the samples on the Amiga back in the day...laughing till tears ran! :D


Warpy(Posted 2010) [#6]
Runs fine on my little laptop. Why is it sort of real-time?


Pete Carter(Posted 2010) [#7]
runs ok on my macbook, not sure why the holes made by the bullets are not round? but apart from that good bit of code.


ImaginaryHuman(Posted 2010) [#8]
Nice


therevills(Posted 2010) [#9]
Have a read here on how it works:

http://www.matibee.co.uk/wpsite/?p=39

@Pete, the holes are not round because I quickly created the shape (remember its all based on horizontal lines ;)) :

		hs2 = hshape.Create()
		For Local t:Int = 0 To 10
			hs2.AddLine( 10 - t, 20+t, t )
		Next
		For Local t:Int = 11 To 15
			hs2.AddLine( 0, 30, t )
		Next 
		Local i% = 0
		For Local t:Int = 16 To 25
			i:+1
			hs2.AddLine( i, 30-i, t )
		Next


I guess I could load in the image and do the same to the bullet as what I am doing with the terrian to get it better :)


therevills(Posted 2010) [#10]
Ive added a new method to game.bmx:



The holes now should be round :) Ive updated the zip file with this change.

Video of Ants:
http://www.youtube.com/watch?v=cxrJ8rrlvqQ


Pete Carter(Posted 2010) [#11]
nice update, looks much better!