1 Attachment(s)
What you think of my games?
Here are two games i have writen recently, pls have a look and tell me what you think. Oh, and pls remember these are only my 2nd and 3rd games so be gentle.
The games are:
Steroids (Asteroids) - really more like space invaders but good fun and writen in one day!
SFake (Snake) - I've been working on this over the last few weeks on and off it looks quite good and is great fun.
bug found in snake? or not?
How to make Snake work: Resize the form a little larger (1/2 larger again maybe)
I've had a look at snake again, and I might have found a bug. I was playing, and it seemed that when i turned sometimes it had an incorrect death. I just tried to duplicate it though and I couldn't so maybe I just suck at snake. :(
Anyway, I had a look at the code. It's pretty good, and I've learnt a few tricks from it (mainly how to use bitblt). I am assuming that seeing as you posted it open source, comments on improvements to the code are welcome? I've got one suggestion, just a simple one to simplify code in PlaceApples:
VB Code:
Private Sub PlaceApples()
Randomize Timer
Dim Applecoordinates As Coordinate
Do
With Applecoordinates
.X = Rnd * 15
.Y = Rnd * 15
End With
If CellContents(Applecoordinates.X, Applecoordinates.Y) = 0 Then
If Rnd < 0.1 Then
CellContents(Applecoordinates.X, Applecoordinates.Y) = goldenApple
Else
CellContents(Applecoordinates.X, Applecoordinates.Y) = Apple
End If
Exit Do
End If
Loop
End Sub
Oh, and also now that I've read the code for snake I see that you've already made it read the level layout from a file. Well, it's as they say, great minds think alike ;)