![]() |
![]() |
#61 |
Amiga will never die!
|
It's all good, I got it, thanks mate. I PMed you too.
|
![]() |
![]() |
#62 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,168
|
I know, I sent you one back
![]() |
![]() |
![]() |
#63 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
@Graham
How is this game going? Also, how do you use the 16x16 tiles to scroll as the gaming area? I understand you can scroll a whole bitmap (like the background), but are there any code examples you have to scroll the 16x16 tiles as you move around? Just wondering if the 16x16 tiles are organised onto a bitmap, which is then scrolled around. |
![]() |
![]() |
#64 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,168
|
It's not going badly at the moment, there's a lot happening "behind the scenes"
![]() As for the scrolling (I'm not very good at explaining these things so bear with me), what I tend to do is when the screen has scrolled 16 pixels is to place the same column of tiles either side of the screen (just to the left and to the right so you can't see it), so when the end of the bitmap is reached, the offset is reset to 0 (or whatever you want the extreme visible left-hand side to be) and as the blocks have been blitted on both sides of the bitmap you don't notice the jump back to the left-hand side, so it gives the illusion of continuous scrolling. I hope that makes sense; as for example code I'll try and dig some out later on. |
![]() |
![]() |
#65 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
I think I get part of it, the code example would be great. My understanding is you could do something like this, but doesn't sound the same as your description:
Say you have a horizontal scroller, where each letter represents a 16x16 tile. AB|CDEF|GH CDEF are currently visible. Then the player moves to the right of screen: ABC|DEFG|H Then you reset the offset: BC|DEFG|HA Then you replace the A tile with the next new tile: BC|DEFG|HI Is this similar to what you were saying, and will it work? |
![]() |
![]() |
#66 |
2 contact me: email only!
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,187
|
I don't think that's quite right. There are 2 things here, positions and tiles. In your example you have a screen width that is twice the maximum width, so for interests sake we will say there are 8 positions 1-8. You are currently viewing ABCD on the screen and the x's are just random crap for the time being:
Code:
|ABCD|xxxx Code:
|ABCD|Exxx Put the new tile E on the right A|BCDE|xxx Scroll E|BCDE|Fxx Copy E over A, and put the new tile F on the right EB|CDEF|xx Scroll EF|CDEF|Gx Copy F over B, and put the new tile G on the right EFC|DEFG|x Scroll EFG|DEFG|H Copy G over C, and put the new tile H on the right EFGD|EFGH| Scroll EFGH|EFGH| Copy H over D |EFGH|EFGH Reset the pointers so we are back at the first block |
![]() |
![]() |
#67 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,168
|
Thanks Codetapper, you've explained it better than I could.
@Calgor I'll try and dig something out code-wise today, if not I'll just knock an example out myself... I hope Blitz Basic is okay ![]() |
![]() |
![]() |
#68 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,168
|
Right, I managed to find a very simple example that comes with Blitz Basic 2.1 that demonstrates map scrolling. I've put it in the Zone if you're interested, Calgor, and includes the Blitz source code, the code in ASCII format and an executable file compiled from the code. Enjoy
![]() |
![]() |
![]() |
#69 |
(Amigas && Amigos)++
Join Date: Sep 2005
Location: Anrea
Posts: 999
|
Thanks heaps guys. I understand codetapper's explanation, from which I now understand Graham's! So that would work for a never ending one-way scrolling.
I will go through the blitz basic source code which seems so much smaller than I imagined (I am coding in C). I will be trying to do 8-way scrolling to which it seems I will need to use a different method, but I will open a new thread if I have any more questions. |
![]() |
![]() |
#70 | |
Moderator
|
Quote:
![]() donĀ“t forget to double buffering the screen for smooth scrolling. i never saw this thread before..if you need any help i would offer it... ![]() believe me, i have much experience with maps in amiga games... ![]() |
|
![]() |
![]() |
#71 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,168
|
What, help for scrolling, or graphics? I've got the scrolling sorted anyway
![]() And yes, I know, but it is only an example (I didn't say it was the best ![]() |
![]() |
![]() |
#72 |
Moderator
Join Date: Sep 2004
Location: France
Age: 51
Posts: 4,277
|
no news about this project?
|
![]() |
![]() |
#73 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,168
|
Dead for four years
![]() ![]() I've only recently found my programming mojo again. Released Downfall, AGA version in (slow) progress, plus new project to follow after that's done and dusted... |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wanted: Graphics/Sound Artists | Djay | request.Other | 0 | 26 November 2012 19:41 |
Annihilation - sound effects required | Graham Humphrey | project.Amiga Game Factory | 17 | 22 August 2007 18:12 |
Any artists out there want a challange ?? | synchro | Retrogaming General Discussion | 3 | 07 May 2007 13:27 |
Annihilation - playtesters needed | Graham Humphrey | project.Amiga Game Factory | 22 | 11 November 2006 17:26 |
|
|