RISC OS News on Drobe
RISC OS Search
containing
"Drobe is the most frequently updated and has the most content, but apparently they aren't interested in 'special offers'."
Welcome back guest  |  Login  |  Register Sunday 7th September 
Login

drobe.co.uk
About Drobe
RISC OS News
Drobe Features
Alternatives
Bookmarks
Riscos.org.uk
Auctions
Events (shows)
AU issues
Tech Material
Wallpaper
Movies
File archives
SH eBooks
FAQs
Changelog

Interact
Forums
Online chat
Your webspace
BBC Emu(games!)
User gallery
RSS news &
comments
Submit news
Contact us

Quick Links
Open directory
Nutshells
ANS archives
ArcSite
RO Repository
Announce
RISCOS Ltd.
Castle

NTK
The Inquirer
The Register
OSNews
Slashdot
Google

Alternatives
NetBSD
ARM Linux
Iyonix Linux

Found Apps
 RISC OS Software !Avalanche
 RISC OS Software !Darts
 RISC OS Software !CFuncAnal
 RISC OS Software !TranTIFF+
 RISC OS Software !Dustbin
 RISC OS Software !NurseW
 RISC OS Software !Tally
 RISC OS Software !VideoLog
 RISC OS Software !USBKick
 RISC OS Software !Spr2Jpeg
Recent users
TonyStill is a RISC OS User TonyStill
Hairy is a RISC OS User Hairy
flibble is a RISC OS User flibble
egel is a RISC OS User egel
bluenose is a RISC OS User bluenose
sa110 is a RISC OS User sa110
PBiggs is a RISC OS User PBiggs
Mart is a RISC OS User Mart
barti is a RISC OS User barti
hzn is a RISC OS User hzn


Why donate?

Serving: 15GB
Fuel: caffeine
3 users online
59 guests
137 active accts 24329 comments

Webstats

 
RISC OS News Feature
RISC OS Gaming in Focus
Published: 21st Apr 2003, 15:23:07GMT  Source: drobe.co.uk
By Peter Naulls
Page 1 of 1
Neil my-one-game-a-week-addiction White shows how easy it is.
In a recent article, we mentioned Convey one of Neil White's games. We've tarted up his description of how it was done, and thrown some of own stuff in for good luck. Enjoy.




Background


The actual concept for the game was inspired by a dot matrix display sub game on the Data East pinball table Batman Forever, in which you guide the Batcar up the side of buildings, smashing ten million point bonuses and across roof tops. All the while avoiding air ventilation units using the flipper buttons to move on a three wide path.


1 - The grid

I had a 10x10 isometric grid from some previous tests for an isometric shemozzle. This had never gooe much further than being a 10x10 grid of tiles, so I decided to use this as a template for the beginnings of the Convey game. After deciding on using a conveyer belt device of 6 player widths, I altered my 10x10 grid so it was a 6 wide and fit nicely on the screen.

The original grid was an array containing a number read from a data line of the sprite to be plotted, the rest of the work done using FOR NEXT loops. So I altered my data lines from 10 wide to 6 wide and added several more data lines underneath and altered the two loops that collected and plotted the data appropriately, giving me a template for the actual belt.


2 - Referencing points on the grid

Running my program gave me a 6 wide line of little tiles going from the edge of the screen, so to make it display only part of the conveyer belt I created the variable 'jug' (always name your variables appropriately kids, so when you come back to your code you understand it!). I then used 'jug' as a marker for the start point of a 24 tile section of conveyer belt, running a loop from 'jug' to 'jug+24', which plotted a 24 tile section of the conveyer belt so by increasing 'jug' by one I moved the conveyer belt by one tile.

The next step was to create a loop that altered the (x,y) point of the line of tiles, and after the line had moved one tile increase 'jug' by one giving the illusion of smooth conveyer belt movement. Well, it doesn't look so smooth without the pink bits covering each end which hide the jump back of the (x,y) positions. I now had a nice looking conveyer belt.

3 - The hero

The next step was to add our hero, the green sphere, so I set up an array for his position on the conveyer belt and arrays for his x and y plot points in each of those positions. I could now use key presses to move him left and right on the conveyer belt and compare his position with the sprite number array of the conveyer belt, so his position is 1 to 6 (the width of the convey belt) and 'jug + 6' (he's always 6 tiles from the end of the conveyer belt).


4 - Collison detection

Next I simply used his position to tell if he was over a hole, the hole sprite being 2 and a 'safe tile' being 1 so he plummets to his doom if he hits a hole tile, and you start again. The same system was used for detecting if he was collecting a red blob - if his position reads a sprite 3 in the conveyer belt array the number of red blobs he has collected goes up by one until he has collected the total on the conveyer belt, which is counted as the belt data is collected, and if all the red blobs have been collected and he lands on the finish square: level complete.

5 - Jumping

After play testing a little I decided to add a jump feature, which just changes the blob sprite so he looks higher up and switches off checking what tile he is under until he has gone the length of two tiles, at which point he crashes back down and checking is reactivated. Then I added the jump tiles that simply activate the jump, added left and right shift tiles which add
or subtract one to the position of our hero forcing his move, then I added the cracked tile which has the same effect as a hole but isn't so obvious.

6 - Evaluation

After making sure our hero couldn't be guided off the edge of the conveyer belt and adding things like score, lives, the title screens and making the data read from a text file; I had made a quality little game in which the levels can be created simply by editing an ASCII file. Not bad going for a couple of days watching the TV and typing the odd line of code.

There are a few minor bugs in the game, one of which is the way I plot the tiles: they are plotted form the bottom row on the screen up to the top row on the right. This means I can't have anything on the tile higher than the back of the tile, because the next row up is plotted over it. Also the same kind of problem occurs because I am plotting the character after the entire level has been plotted, meaning he won't go behind stuff, but all these problems will be solved in Convey 2, or I might call it 'jug'.

7 - Tools

Generally the software I use is just Zap, a Basic file cruncher called BC, Paint and the fast sprite part of Andy Southgate's game suite. Occasionally for graphics I pull out Artworks and Photodesk.


Convey, along with several other games can be fetched from Neil's site: www.cloudsprinter.com/software/

Source code

For more information, you can find the source code to Neil's Convey here.




Other Developments

Neil himself admits to being scared that he's now the most prolific RISC OS games developer. It can take the right attitude to write games, and Neil's mix of enthusiasm and heady classic satire gets the job done.

But what else is going on? As we mentioned in another article covering Neil's games, Popcorn, a games engine for RISC OS, is being improved by Rik Griffin and can be found on his website.

eQRD's SDL port although somewhat unstable and not yet 32-bit, provides a promising start, as an increasing number of potentially portable programs use it, including several games. There are a few people looking at this, and we'll see what happens.

My own Unix Porting Project sports a few games, including FreeCiv, although they remain somewhat academic until more work is done to support X in RISC OS. This may open the way for many more ported games on RISC OS.





Getting Invovled

Want to write a RISC OS game? I suggest you start small. And use something like Popcorn to do all the fiddly bits. This is the last thing you want to be messing round with when doing a small game.

Both C and Basic have advantages for game development, but if you want to do big things or use something like SDL, you're probably going to have to use C.

I very much doubt we're going to start a RISC OS games Renaissance, but it's still nice to see these developments.

Related articles
RISC OS 6.10 available to Select subscribers
Show your love for RISC OS on Facebook
New release of RISC OS Firefox available

This article has been linked to, or is available in the following formats:  
 
 
 
 
 
[Printable] [Digg this] [Blog search]


SparkY(good user) 
21/4/03 4:02PM
As Chocky said above, it is nice to see these developments. It was also a great moment when, thanks to the UPP, I got FreeCiv running on my RiscPC a few months ago. Civilization must be one of the most addictive games ever - and it's a game you won't get bored of as each game is different. To really see what all the fuss is about though, you have to perservere through what might seem a rather dull start and complete a game - only then will you get a full picture and a full understanding of the game. Yum. I look forward to seeing FreeCiv running on RISC OS even better (and when I'm better off financially I'll be signing up to the UPP again - I don't even have a RiscPC at the moment, had to sell it due to lack of funds. Saving for an Iyonix, mmm!)
--
Gavin Smith, Carrickfergus
nexwww 
Face
21/4/03 7:37PM
watching the tv and smoking fags, fing editors, I said if you edit it I wont send you anything like it again, you have, so you've done it.
imj(good user)www 
Face
21/4/03 8:24PM
Awwww. There there. I'm sure the original was lovely. Calm your panties now.
timephoenix(valued user) 
22/4/03 8:44AM
Be forgiving... its Easter remember!
nexwww 
Face
22/4/03 1:50PM
no
SparkY(good user) 
24/4/03 12:45PM
Shouldn't next get an apology? :|
--
Gavin Smith, Carrickfergus
mrchocky(valued user) 
Face
24/4/03 5:03PM
What we may or may not have said to nex about this or any other issue isn't anyone's concern but drobe.co.uk's and nex's.
--
Peter, drobe.co.uk
SparkY(good user) 
24/4/03 9:48PM
Tsk, was I talking out loud again? Sorry Peter!
--
Gavin Smith, Carrickfergus
arenaman 
27/4/03 4:14AM
Well bully for you and nex, Peter.

Why don't you proof read your articles? Try doing so and correct the glaringly obvious spelling error in the last title.
--
Michael Stubbs, Leeds
nice and sweet 
29/4/03 6:45PM
what the fonze?
 

Top Tip

File repository

You can upload your own RISC OS software and categorize it in our file repository for others to download
 
Headline news
Wakefield 2008 show photos
28th Apr 2008

Wakefield 2008 show live news
26th Apr 2008

Who would want an A9home PDA?
24th Apr 2008

RISC OS 6.10 available to Select subscribers
24th Apr 2008

Gallery photo
Older news
Animation and typing applications really released
24th Apr 2008

Wakefield 2008 show preview
22nd Apr 2008

R-Comp unveils new PDF authoring package
22nd Apr 2008

NetSurf bags GBP10K investment from Google
21st Apr 2008

Apple Mac VirtualRiscPC leaves beta
20th Apr 2008

Blu-ray disc burn breakthrough
14th Apr 2008

PDF import support for ArtWorks
13th Apr 2008

Wakefield 2008 show theatre line-up revealed
13th Apr 2008

Animation software collection falls into R-Comp's hands
9th Apr 2008

Features
A9home: two years on
4th Dec 2007

A9home DIY laptop: first pictures
1st Dec 2007

Software hosted by Drobe: Your guide
5th Nov 2007

 

Top | Design and concept © Fudgecake Design, 1999 - 2001. Content © The Drobe Team, 1999 - 2008. 
Click here for more information and terms and conditions.