Ok, so how easy..
- scrumpy
- Baaa!

- Posts: 151
- Joined: Thu Apr 25, 2002 10:03 pm 0
- Yahoo Messenger: stuartscrump@yahoo.co.uk
- Location: Sussex
- Contact:
Ok, so how easy..
is it to write a game in Blitz Basic or any other PC based game creator?
I'm so tempted to have a bash but don't really have the time to spend hours each night for a month or more to produce someting fun.
How quick can you get something on screen, and I suppose in the smalled number of lines possible? time saving essentially.
Ta
scrumpy
I'm so tempted to have a bash but don't really have the time to spend hours each night for a month or more to produce someting fun.
How quick can you get something on screen, and I suppose in the smalled number of lines possible? time saving essentially.
Ta
scrumpy
- teamonkey
- Sheepie Whore

- Posts: 12082
- Joined: Thu Jun 13, 2002 1:07 am 0
- XBL Gamertag: itsthetaste
- PSN: teamonkey_ca
- Contact:
In BlitzMax this will set the screen resolution to 640x480, load an image and display it at the centre of the screen (320,200) until you hit escape.
Code: Select all
Graphics(640,480,0,0)
Local image:TImage = LoadImage( "myimage.png" )
While Not KeyHit(KEY_ESCAPE)
Cls
DrawImage(image, 320, 200)
Flip
EndWhile
Nice and short. Will it display rapidly-changing coloured bars in the border? Hmmm, wrong computerteamonkey wrote:In BlitzMax this will set the screen resolution to 640x480, load an image and display it at the centre of the screen (320,200) until you hit escape.
Code: Select all
Graphics(640,480,0,0) Local image:TImage = LoadImage( "myimage.png" ) While Not KeyHit(KEY_ESCAPE) Cls DrawImage(image, 320, 200) Flip EndWhile
- piku
- Sheepie Whore

- Posts: 20960
- Joined: Wed Apr 24, 2002 10:44 am 0
- Website: Http://Www.ncot.uk
- Location: Wakefield
- Contact:
Re: Ok, so how easy..
Unlike writing a book, writing software does require a fair amount of time and can be quite hard when things don't work as expected.scrumpy wrote: I'm so tempted to have a bash but don't really have the time to spend hours each night for a month or more to produce someting fun.
However, that's just part of it
My advice is to try something and don't focus on creating a game all in one go. Set yourself little goals and tasks - "I have an hour spare tonight, I'm going to work out how to move a sprite around with my mouse".
And remember - you're doing it for fun! So if it stops being fun, ask for help or stop for a bit.
return (0);
- scrumpy
- Baaa!

- Posts: 151
- Joined: Thu Apr 25, 2002 10:03 pm 0
- Yahoo Messenger: stuartscrump@yahoo.co.uk
- Location: Sussex
- Contact:
Re: Ok, so how easy..
Sound advice. I was just interested in the ease of game (I know that's very general) creation in Blitz and how easy people found it. How does it help you more than classes and librarys in other languages.piku wrote:Unlike writing a book, writing software does require a fair amount of time and can be quite hard when things don't work as expected.scrumpy wrote: I'm so tempted to have a bash but don't really have the time to spend hours each night for a month or more to produce someting fun.
However, that's just part of it
My advice is to try something and don't focus on creating a game all in one go. Set yourself little goals and tasks - "I have an hour spare tonight, I'm going to work out how to move a sprite around with my mouse".
And remember - you're doing it for fun! So if it stops being fun, ask for help or stop for a bit.
I've done some javascript, php, basic and C in the past so have spent my fair share of hours debgging
Ta.
scrumpy
- MarkInc
- Baaa!

- Posts: 385
- Joined: Mon Apr 22, 2002 9:33 pm 0
- PSN: max_i_mus_6_6_6
- Location: London, Canada
- Contact:
I've used BlitzBasic, Blitz3D and BlitzMax.
I've found them all easy to pick up and create with.
(The 3D stuff takes more time (models&such) but they are a joy for 2D creations.)
I've followed different styles or the years from sloppy gosub/goto spaghetti to much more structured OO, so I am leaning to BMax almost exclusively now.
I usually start off by getting something up on screen and then gradually adding more and more around the main loop.
I've found them all easy to pick up and create with.
(The 3D stuff takes more time (models&such) but they are a joy for 2D creations.)
I've followed different styles or the years from sloppy gosub/goto spaghetti to much more structured OO, so I am leaning to BMax almost exclusively now.
I usually start off by getting something up on screen and then gradually adding more and more around the main loop.
- ~D4T45H4T~
- Baaaaaa!

- Posts: 4695
- Joined: Sat Aug 30, 2003 4:56 pm 0
- Location: UK
Although most flash games are shite, it is possible to make some half decent games with it.
Here's one I'm dabbling with in Flash MX 2004:
http://www.datassette.net/crap/NEWshooter9.exe
Here's one I'm dabbling with in Flash MX 2004:
http://www.datassette.net/crap/NEWshooter9.exe
- Sir_LANs-a-lot
- Sheepie Whore

- Posts: 12143
- Joined: Mon Mar 10, 2003 1:00 am 0
- Location: Here
BlitzBasic is great, I've knocked up a few silly things and it hasn't been too hard (needs some thought - natch, but if I can do some stuff, then anyone can!).
Some silly (2D) stuff wot I wrote in Blitz3D:
http://www.lansalot.net/download/rv_xmas.zip
http://www.lansalot.net/download/sz.zip
Haven't done any for a while (in fact, I haven't even looked at BlitzMax since buying it - tsk!).
But it's there if I feel the urge to do more silly stuff
Some silly (2D) stuff wot I wrote in Blitz3D:
http://www.lansalot.net/download/rv_xmas.zip
http://www.lansalot.net/download/sz.zip
Haven't done any for a while (in fact, I haven't even looked at BlitzMax since buying it - tsk!).
But it's there if I feel the urge to do more silly stuff
[Sir_LANs-a-lot]
Meat is murder.
Tasty, tasty murder.
Meat is murder.
Tasty, tasty murder.
GameMaker is great! http://www.gamemaker.nl, innit?
Also, if you're comfortable with coding, and want to do Flash, but are cheap like me
there is Motion-Twin. http://www.mtasc.org
Also, if you're comfortable with coding, and want to do Flash, but are cheap like me
Re: Ok, so how easy..
As a generic answer to that question, you basically get out what you put in.scrumpy wrote:How quick can you get something on screen.
You can simplistically attach a bitmap to the current mouse co-ordinates (not smooth or clever but really bloody easy and quick to do. One line: "DrawBitmap PlayerShip, MouseX, MouseY"), slap that into a "repeat...until the escape key is pressed" main loop, throw in quick code for making a bullet appear where the mouse currently is whenever you press the mouse button and then put in "move the bullet up the screen" code (e.g. "BulletY=BulletY - 1") that runs every iteration of the loop regardless.
There. A ship which fires bullets. A matter of minutes, if you know what you're doing.
You can create enemies by picking a random co-ordinate and slapping a bitmap there. Pick another random co-ordinate and then write code that slowly moves the enemy ship from the one random location to the other. When it reaches that random location, pick another new random location and repeat.
Throw in some "if bullet and enemy ship are roughly in the same place" code that makes the enemy ship disappear and then add 10 points to the score.
There. It's a shit game but an experienced programmer using BASIC could literally throw that together perhaps faster than I can type out this post to describe it.
Enhance it little by little. Use an array so you can have multiple bullets. When that works, use another array to have multiple enemies. Improve the enemy movement patterns to not just be entirely random but make a whole bunch of them move around in an "attack wave".
Stick a parallax starfield behind it that scrolls (everyone writes these all over the internet, so you could even basically nick someone else's code. "In your own words", of course, for copyright reasons). Go crazy and use a multidimensional array for some kind of "pixel-shatter" explosion when the enemy gets hit by the bullets.
Throw in a random timer that makes a "power up" bitmap appear. If they collect it ("if player ship is roughly in the same place as power up then...") then add on 100 points to the score and then modify the shooting code that when they have the "power up" two parallel bullets fire out instead of just one (maybe use a different bitmap too).
Go on Google, grab a bunch of sound effects (or use one of those sound generator programs and twiddle the dials madly until you get something groovy emitting from your speakers) and then stick in "play sound" commands at the appropriate points of firing your weapon, blowing up enemies, getting blown by the enemies, collecting the power-up, etc., etc.
The point is that the basic crap game can be thrown together in minutes in a totally laissez-faire way and then just keep tweaking it and modifying it and throwing more shit into the game, as and when you've got time to do it.
It's not good programming style at all to start with no real idea of where you're going to end up - basically, it's hacking (in the original sense of the word) - but you're not looking to win "nicest looking code in the world" or "best use of complex OOP nonsense" contests, right?
You just want something not particularly complex to play for fun in the shortest possible time? Then just hack it all out and make it all up as you go along, using a "step by step" approach of just throwing in more shit as and when you feel like it and have the time.
Ordinarily, an experienced programmer doing the "Yoda teaching Luke to use the force" thing does everything possible to recommend never hacking anything. And they are right. Hacking is horrible, ugly and with big programs, it'll make life total and absolute hell (perhaps even impossible). I thus have to add in this disclaimer that hacking is a terrible practice and you ever really shouldn't do it because it leads to bad coding habits.
But, ignoring that, hack out a main loop. Stick a ship into it. Make bullets come out of the ship when you press the mouse button. Stick an enemy randomly on the screen. Add collison code to kill the enemy. Et cetera, et cetera. Just stick in something extra every 5 minutes you have spare.
Do a Tony Crowther and if you write some other game then just grab 90% of the code (or 100% if it's that bloody train game which he released about 10 times under different names) into the new game, use different bitmaps, hack in some new shit.
In the C64 days, Tony was famous for prefecting the perfect "re-use, hack, re-use, hack" strategy that he was knocking out commerical games at a rate of one a week or even sometimes faster.
The point is that if you don't care then program like you don't care. It's bad programming style and produces cheap and nasty games but it's bloody quick. Use BASIC, use the first bad code that comes into your head and use someone else's bitmaps just to get the thing working (you can change them before public release but, just to get the thing done, don't worry about it and just "borrow" some bitmaps from somewhere or use "Google images" to find something and photoshop it to the right size).
Spaghetti it. If you can't think of a reasonable way to get out of a loop, throw in a label and just "goto" it. That's really bad code but it works, so who cares?
You're not working in a team? You're not going to sell it? You're not going to have to hand it over to someone else six months later?
Then screw good programming practice. If you know what does what then it'll work. It won't be pretty but it'll work.
Masterpieces were written on 8-bit machines with attitudes not much more careful than that.
Also, you can actually sometimes get better games doing things this way from the perspective that you're tweaking the code as you go along and constantly "play testing" it to work out what you need to do next. Thus, the game idea evolves according to how it plays, instead of trying to "guess" what'll make a good game at the start before you start coding (where it might turn out to totally suck in the playability).
Right, my programming teachers at college are now going to kill me for openly saying "use goto" and recommending hacking.
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
- John Maynard Keynes
-
Becky Rose
- Baaa!

- Posts: 114
- Joined: Thu Jul 28, 2005 12:44 pm 0
Modern entry level procedural basic's (BlitzMax probably isn't a great starting point) such as Blitz3D and DarkBASIC Professional offer incredible results for the effort you put in.
The modern 3D games orientated BASICS are widely under-rated and can deliver excellent results. You wont easily write the next Halflife game although technically you *could* (but somebody good enough wouldn't use those tools), and if you're putting in only a few hours here and there you'll be highly unlikely to rival even a budget game, but you will get results that would have been unimagineable only a few years ago.
The modern 3D games orientated BASICS are widely under-rated and can deliver excellent results. You wont easily write the next Halflife game although technically you *could* (but somebody good enough wouldn't use those tools), and if you're putting in only a few hours here and there you'll be highly unlikely to rival even a budget game, but you will get results that would have been unimagineable only a few years ago.
- the2bears
- Baaaaaa!

- Posts: 3686
- Joined: Wed Oct 27, 2004 9:30 pm 0
- Location: The City by the Bay
- Contact:
That's not bad! Nice little Asteroids, do you have plans for it?~D4T45H4T~ wrote:Although most flash games are shite, it is possible to make some half decent games with it.
Here's one I'm dabbling with in Flash MX 2004:
http://www.datassette.net/crap/NEWshooter9.exe
Bill
the2bears - the indie shmup blog
Blitz basic is a greate way to start in writing games.
You can use it at it's simplest level and have something on screen and moving around very quickly.
Using the samples you can quickly learn the basics.
In fact I would use Blitz to start people in general programming techniques as it is so immediate.
I still use blitz as a scratch pad when trying things out or working on effects etc for inclusion into the larger, cross platform projects I work on.
It's great. Have a go!
Scott
You can use it at it's simplest level and have something on screen and moving around very quickly.
Using the samples you can quickly learn the basics.
In fact I would use Blitz to start people in general programming techniques as it is so immediate.
I still use blitz as a scratch pad when trying things out or working on effects etc for inclusion into the larger, cross platform projects I work on.
It's great. Have a go!
Scott
- scrumpy
- Baaa!

- Posts: 151
- Joined: Thu Apr 25, 2002 10:03 pm 0
- Yahoo Messenger: stuartscrump@yahoo.co.uk
- Location: Sussex
- Contact:
Version?
Thanks scott. I'm assuming that BlitzPlus is what I should be trying? not BlitzMax?davethecollie wrote:Blitz basic is a greate way to start in writing games.
You can use it at it's simplest level and have something on screen and moving around very quickly.
It's great. Have a go!
Scott
scrumpy
- Sir_LANs-a-lot
- Sheepie Whore

- Posts: 12143
- Joined: Mon Mar 10, 2003 1:00 am 0
- Location: Here
Re: Version?
I'd go with BlitzMax to be honest with you.scrumpy wrote:Thanks scott. I'm assuming that BlitzPlus is what I should be trying? not BlitzMax?davethecollie wrote:Blitz basic is a greate way to start in writing games.
You can use it at it's simplest level and have something on screen and moving around very quickly.
It's great. Have a go!
Scott
scrumpy
[Sir_LANs-a-lot]
Meat is murder.
Tasty, tasty murder.
Meat is murder.
Tasty, tasty murder.


