Jeremy Rand
|
74a21db9e0
|
Change the starting position so we get a collision right away.
|
2020-09-24 23:19:43 -04:00 |
|
Jeremy Rand
|
766eaf6273
|
Add the code to detect segment collisions and change direction if a head is colliding with another head or body segment.
|
2020-09-24 23:17:39 -04:00 |
|
Jeremy Rand
|
a9f62257f9
|
Reverse the order in which segments are added in memory and add some data for tracking the tiles occupied by segments. This will allow for segment collision detection next.
|
2020-09-23 23:04:05 -04:00 |
|
Jeremy Rand
|
69efb23800
|
Some minor optimization to the update code and check for a mushroom in the tile we are moving into and the next tile when we need to decide to change direction. This better reproduces the real game's behaviour.
|
2020-09-23 22:42:02 -04:00 |
|
Jeremy Rand
|
1dfbe8156a
|
Add support for having both fast and slow centipedes in play at the same time.
|
2020-09-21 22:57:06 -04:00 |
|
Jeremy Rand
|
a9d3b12725
|
Add code to poison a centipede.
|
2020-09-13 16:08:32 -04:00 |
|
Jeremy Rand
|
03466f8847
|
Add code to allow a centipede and all its body segments to scroll in at the top of the screen at slow speed. Need to do the same for fast speed.
|
2020-09-13 15:18:18 -04:00 |
|
Jeremy Rand
|
f99ff8e816
|
Add all the code to handle double speed centipede segments.
|
2020-09-13 14:54:18 -04:00 |
|
Jeremy Rand
|
dc5ab4720d
|
Fix bugs that cause the centipede segment to drop as if poisoned when it reaches the bottom half of the screen.
|
2020-09-13 13:32:25 -04:00 |
|
Jeremy Rand
|
ab5f5c6299
|
Fix bug in code that looks for the edge of the screen which was comparing by tile number, not tile offset.
|
2020-09-11 00:25:41 -04:00 |
|
Jeremy Rand
|
46567659e9
|
Add the code to animate the segments at slow speed. There is a bug where the centipede seems to get stuck along the left edge sometimes. But overall looks pretty good.
|
2020-09-11 00:01:30 -04:00 |
|
Jeremy Rand
|
0362b53e2c
|
The head segment is now animating to the right. But it needs better support for segment speed and it needs to change direction when it reaches an obstacle. And all of the other directions to write still.
|
2020-09-09 23:53:51 -04:00 |
|
Jeremy Rand
|
0d4677c397
|
More work towards the animation of centipede segments.
|
2020-09-08 23:54:44 -04:00 |
|
Jeremy Rand
|
36617cbf9d
|
Lay some more groundwork for animating centipede segments. We now have an array of 96 (97 actually) entries which describe the position of the segment now or in the past. By keeping past information, body segments which follow head segments will take no calculation to update. We just have to animate head segments and body segments will follow them 8 pixels behind automatically.
|
2020-09-07 22:35:32 -04:00 |
|
Jeremy Rand
|
3b541f8482
|
Fix bug leading to crash when trying to add centipede body segments. I needed to have a nop instruction after the self-modifying long jump. I am writing 4 bytes of the address into the long jump which only uses a 3 byte address and I was corrupting the next instruction. Inserting a nop ensures no corruption happens.
|
2020-09-06 13:39:00 -04:00 |
|
Jeremy Rand
|
f5d1aa9ee6
|
Improve the performance of the centipede segment draw function.
|
2020-09-06 02:05:33 -04:00 |
|
Jeremy Rand
|
92c02ded0f
|
Simplify the handling of the dirty tiles to just store the dirty word and not keep the array of dirty tile offsets. Have the flea use game and non-game dirty tiles to fix the problem with LHS tiles being marked dirty all the time.
|
2020-09-04 01:55:38 -04:00 |
|
Jeremy Rand
|
22a22d3533
|
Change the code to race the beam down the screen, redrawing the dirty game rows as it goes.
|
2020-09-04 00:17:19 -04:00 |
|
Jeremy Rand
|
b07221c363
|
Change from an array of structs to a series of individual arrays for the tile information. This makes it easier to index into the arrays because the tile number * 2 is the offset, rather than tile number * 16.
|
2020-09-02 00:15:53 -04:00 |
|
Jeremy Rand
|
df56cdecf1
|
Add the ability to display head segments of the centipede. Body segments is not working yet.
|
2020-08-27 23:36:16 -04:00 |
|
Jeremy Rand
|
3a63b2ef1b
|
Add code to support marking dirty tiles under head and body segments.
|
2020-08-27 22:36:04 -04:00 |
|
Jeremy Rand
|
d8e9c6863b
|
Add the code to draw the body and head segments in the game loop. Still need to add code to create, update and shoot segments.
|
2020-08-26 23:44:41 -04:00 |
|
Jeremy Rand
|
67e2b56dc2
|
Add some more code to support adding bug segments to the game.
|
2020-08-10 23:58:49 -04:00 |
|
Jeremy Rand
|
7d7afc908d
|
Use macros to reduce the copy/pasted code for marking tiles as dirty. Rough out the support for body and head segments.
|
2020-07-30 23:34:48 -04:00 |
|