Jump to content

Photo

FlappyBird test


334 replies to this topic

#51 Kosmic Stardust OFFLINE  

Kosmic Stardust

    Princess Rescuer

  • 18,399 posts
  • Location:Milky Way Galaxy

Posted Thu Dec 22, 2016 4:39 PM

Hi. Is the ROM still running too fast on hardware? I can test for you guys on my Lynx SD cart.



#52 tonma OFFLINE  

tonma

    Chopper Commander

  • Topic Starter
  • 142 posts

Posted Fri Dec 23, 2016 3:23 AM

Do you want to have saved high score? The options are:

 

128 bytes:

unsigned __fastcall__ lynx_eeread_93c46(unsigned char cell);
; /* Read a 16 bit word from the given address */

 

; write word to EEPROM
; void __fastcall__ lynx_eewrite_93c46(unsigned int addr, unsigned int val);
 

 

2048 bytes:
; unsigned int __fastcall__ lynx_eeread_93c86(unsigned int addr);
 

; write word to EEPROM
; void __fastcall__ lynx_eewrite_93c86(unsigned int addr, unsigned int val);
 

 

It adds a few cents to the components but does not affect the price of the cart.

 

Oh, thanks, I didn't think about save game. I'll try this too. I can save on eeprom on lynxSD cart ?

 

Hi. Is the ROM still running too fast on hardware? I can test for you guys on my Lynx SD cart.

 

I think the ROM runs at the right speed on the actual hardware, but tests on real harware are welcome.



#53 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Fri Dec 23, 2016 4:00 AM

 

Oh, thanks, I didn't think about save game. I'll try this too. I can save on eeprom on lynxSD cart ?

 

 

I think the ROM runs at the right speed on the actual hardware, but tests on real harware are welcome.

 

 

I don't think you have eeprom's on emulators or SD cart.

 

What I usually do is write a Magic byte in the first location to signal that an eeprom is available. With the eeprom you just don't lose your high scores when you turn the Lynx off.



#54 tonma OFFLINE  

tonma

    Chopper Commander

  • Topic Starter
  • 142 posts

Posted Fri Dec 23, 2016 4:41 AM

 

 

I don't think you have eeprom's on emulators or SD cart.

 

What I usually do is write a Magic byte in the first location to signal that an eeprom is available. With the eeprom you just don't lose your high scores when you turn the Lynx off.

 

Yep. I asking this for the testing. I'll have no cart with eeprom to make final test.

I just test the file "eestest.o" on handy. File from Sage website. It's seems to work but I'm not sure. But in any case, the backup will be erased at the next boot.

 

I try to add music with chipper tracker. Chipper version 1.7.6.0

I load an example song and export to "BLL driver -> export CC65 remake", add the default "soundbs.mac" and change the track file to add good value :

 

From :

;;; source file for CC65 "remake" compiler
	.include "soundbs.mac"
	.global musicptr
	.rodata
musicptr:
	.word CHANNEL_0, CHANNEL_1, CHANNEL_2, CHANNEL_3

PATTERN_LENGTH   .set  1920

TO

.include "soundbs.mac"
.export _musicptr

	    .segment "POPCORN_RODATA"
_musicptr:
	.word CHANNEL_0, CHANNEL_1, CHANNEL_2, CHANNEL_3
PATTERN_LENGTH   .set  1920

The game crash when loading the track.

 

Do I need to change something ? In my map, I don't have error on memory segment.



#55 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Fri Dec 23, 2016 6:17 AM

I think you need to change name of _musicptr to whatever you are loading.

 

And you have to load the tune into memory with lynx_load(filenr);



#56 Level42 OFFLINE  

Level42

    River Patroller

  • 2,602 posts
  • Location:Ridderkerk, The Netherlands

Posted Fri Dec 23, 2016 8:41 AM

My Lynx is on it's way back from a roundtrip to Germany, McWill exchanged my defective LCD....so until it arrives back I can't test it yet....



#57 sage OFFLINE  

sage

    Dragonstomper

  • 984 posts
  • Location:Germany

Posted Fri Dec 23, 2016 11:47 AM

 

 

I don't think you have eeprom's on emulators or SD cart.

 

What I usually do is write a Magic byte in the first location to signal that an eeprom is available. With the eeprom you just don't lose your high scores when you turn the Lynx off.

You have eeprom support in the latest handy version. (the beta found in the porgrammers forum). Not sure if I put it into retroarch, too.

but, you need to add some value to the header. need either a very new make_lnx or some hex editor.



#58 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Sat Dec 24, 2016 3:29 PM

You have eeprom support in the latest handy version. (the beta found in the porgrammers forum). Not sure if I put it into retroarch, too.

but, you need to add some value to the header. need either a very new make_lnx or some hex editor.

 

Nice. Obviously I need to add the feature to the default lnx header so that any game using eeproms get the right bits set in the header automatically.



#59 tonma OFFLINE  

tonma

    Chopper Commander

  • Topic Starter
  • 142 posts

Posted Tue Dec 27, 2016 11:25 AM

ok.

I just added a random for the position of the columns. I'll increase the difficulty later.
I added music, copied from the chipper tracker. Seem weird, maybe the framerate.

I still have to change the fonts and after I look at the backup of the scores.

 

lynx1110.png

Attached Files



#60 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Tue Dec 27, 2016 1:30 PM

The chipper is not running from the VBL interrupt. It should use a high speed dedicated timer7 running at 240Hz. It should be independent from the frame rate.

_lynx_snd_init:
	php
	sei
	lda	#%10011000|_31250Hz
	sta	$FD1D
	lda	#129
	sta	$FD1C	; set up a 240Hz IRQ
;----------------------------------------------------------------------------
; lynx_snd_handler is run at every sound interrupt
;

lynx_snd_handler:
	lda	INTSET
	and	#TIMER7_INTERRUPT
	bne	@L0
	clc
	rts
@L0:

This should be found at the resident/lynx-snd.s



#61 sage OFFLINE  

sage

    Dragonstomper

  • 984 posts
  • Location:Germany

Posted Wed Dec 28, 2016 3:41 AM

... well it depends for which timer the song was made...



#62 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Wed Dec 28, 2016 8:54 AM

The song is a 240Hz Axel tune. I can hear it using Mednafen.

 

I should really take the time to sit down with my keyboard and compose some new music. Once I get the idea I can easily play it into Chipper using the ASCII keyboard.

 

For a game like Flappy Bird you need some kind of steady beat song with sudden up/down changing patterns. Something that fits the game. Cool, jumpy and repetitive.



#63 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Thu Dec 29, 2016 4:37 AM

What about Salsa for the bird? Mapping 8 instruments into 4 channels is a challenge... http://www.salsabeatmachine.org/

 

Clave

| _ _ ! _ ! _ _ _ | _ _ _ ! __ _ ! | 

Cowbell

| * _ * _  * _ * * | * _ * *  * _ * * |

...



#64 Level42 OFFLINE  

Level42

    River Patroller

  • 2,602 posts
  • Location:Ridderkerk, The Netherlands

Posted Fri Dec 30, 2016 4:15 AM

Don't know if this "song" is well known in your parts of the world, but in 1980 we had this terrible thing called the "Vogeltjesdans" (= bird's dance). I totally hated it but it was a smash hit here (there was even a dance that "matched" it...). It's annoying and yet it's one of those tune's that sticks in your mind....

 

I've always thought this tune would be perfect for Flappy Bird because, let's face it, the game is annoying and irritating too :D :D 
 

Here it is:

 



#65 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Fri Dec 30, 2016 4:25 AM

PERFECT!!!!

 

I know this tune :)

According to Wikipedia a Swiss song "Der Ententanz" (The Duck Dance).

 

Thank you! It really fits the game. Now I just have to assure that you cannot turn it off ;)



#66 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Fri Dec 30, 2016 8:16 AM

Here is a single channel chickendance. Included as a song and as an exported cc65 track.

 

It loops forever....

 

Of course we could add more band for the remaining 3 channels. But in a way I would like to keep the sound just as simple as the game.

 

 

One thing that is disturbing is that after making this tune on Chipper I now even remember the dance moves.

 

How do you un-remember a tune? It is playing in my head now. :(

 

We really need a yellow warning sticker on this cart.

Attached Files


Edited by karri, Fri Dec 30, 2016 8:57 AM.


#67 Kosmic Stardust OFFLINE  

Kosmic Stardust

    Princess Rescuer

  • 18,399 posts
  • Location:Milky Way Galaxy

Posted Fri Dec 30, 2016 8:51 PM

Don't know if this "song" is well known in your parts of the world, but in 1980 we had this terrible thing called the "Vogeltjesdans" (= bird's dance). I totally hated it but it was a smash hit here (there was even a dance that "matched" it...). It's annoying and yet it's one of those tune's that sticks in your mind....
 
I've always thought this tune would be perfect for Flappy Bird because, let's face it, the game is annoying and irritating too :D :D 
 
Here it is:
 
https://www.youtube....h?v=0RrfbUmQ_B8

YESS!!! I votes for "Chicken Dance" playing in continuous loop from the moment the cart loads. Playback uninterrupted while you die and restart over and over with no option to mute it. :rolling:

#68 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Sat Dec 31, 2016 3:38 AM

This must be the most irritating game in history.

 

- playing the game sideways

- Chickendance

- Flappy

 

I love the idea. Time to try out some awful cart colours. What about red ABS? I could 3D print one and post it here.



#69 tonma OFFLINE  

tonma

    Chopper Commander

  • Topic Starter
  • 142 posts

Posted Sat Dec 31, 2016 3:44 AM

Oh no, "La danse des canards" :-D  Coin Coin.

I've played this yet at the primary school spectacle. 30 years ago...

 

 

Thanks a lot for the tune, I'll try this in my code.

 

I've added collision. Only need to change the font rotation. I've spend my time on a big bug. Everytime, I'm going back to the intro the game freeze. Because I forgot to stop the sound ... works better now.

 

I'll add the chiptune and put a new version on the forum.



#70 tonma OFFLINE  

tonma

    Chopper Commander

  • Topic Starter
  • 142 posts

Posted Sat Dec 31, 2016 7:55 AM

Spend 3 hours on a new bug ... itoa doesn't work anymore. :_(

 

But now it's working, I launch 4 channels music then I only need one. :-D

 

The high score worksbut not saving function yet.



#71 karri OFFLINE  

karri

    River Patroller

  • 2,586 posts
  • Location:Espoo, Finland

Posted Sat Dec 31, 2016 8:13 AM

4-channels Chicken dance? Are we working on a Mega-annoying release or what?

 

Edit: Ah, sorry. You did not notice that there was no channels 1, 2, 3 in the build.

 

Here is the cart. Just waiting for content.

 

flappycart.png

 

The eeprom here is the small one 128 bytes. Is it enough? Or should I use the 2048 bytes one?

 

Actually there is even space for a 64k eeprom on the pcb but nobody has written the driver for that yet.


Edited by karri, Sat Dec 31, 2016 8:20 AM.


#72 mvirtuale OFFLINE  

mvirtuale

    Chopper Commander

  • 175 posts

Posted Sat Dec 31, 2016 8:25 AM

Sorry for my English. use an automatic translator.
In my opinion, for the Atari lynx it is better to use "lynxFlapp002.zip"
Ideally, horizontal screen with some sound.
a cartridge will be created for the lynx?
My highest score is 6! :(



#73 tonma OFFLINE  

tonma

    Chopper Commander

  • Topic Starter
  • 142 posts

Posted Sat Dec 31, 2016 9:23 AM

4-channels Chicken dance? Are we working on a Mega-annoying release or what?

 

Edit: Ah, sorry. You did not notice that there was no channels 1, 2, 3 in the build.

 

Here is the cart. Just waiting for content.

 

attachicon.gifflappycart.png

 

The eeprom here is the small one 128 bytes. Is it enough? Or should I use the 2048 bytes one?

 

Actually there is even space for a 64k eeprom on the pcb but nobody has written the driver for that yet.

:-D

 

I love this red cartridge. You're my Santa Claus. Music + cartridge.

 

I have a nearly finish version. Collision, score, music. Maybe need to change the difficulty after some time. i'll doing this tomorrow.

 

For saving the highscore, I add the function for the eeprom and everything seems fine. In the emulator, the writting / reading function works. But of course, the emulator doesn't seem to save it when I reload the game (I try with the Sage version of handy 0.971).But you tell me, I need magic byte in header.

 

For testing, I use something like and mynameH = 4000 after the operation :

mynameH = 6000;
myname = 4000;

lynx_eewrite_93c46(0, myname);
mynameH = lynx_eeread_93c46(0);

Sorry for my English. use an automatic translator.
In my opinion, for the Atari lynx it is better to use "lynxFlapp002.zip"
Ideally, horizontal screen with some sound.
a cartridge will be created for the lynx?
My highest score is 6! :(

 

With the last version, it'll be more easy.

But I prefer, the Vertical version 'cause of the original game.

 

Yes, We'll can have a cartridge . The more smaller and annoying game for the lynx.

 

I need to add "not for resale" on the front page. :grin:

Attached Files



#74 Kosmic Stardust OFFLINE  

Kosmic Stardust

    Princess Rescuer

  • 18,399 posts
  • Location:Milky Way Galaxy

Posted Sat Dec 31, 2016 10:14 AM

4-channels Chicken dance? Are we working on a Mega-annoying release or what?

 

Edit: Ah, sorry. You did not notice that there was no channels 1, 2, 3 in the build.

 

Here is the cart. Just waiting for content.

 

attachicon.gifflappycart.png

 

The eeprom here is the small one 128 bytes. Is it enough? Or should I use the 2048 bytes one?

 

Actually there is even space for a 64k eeprom on the pcb but nobody has written the driver for that yet.

I couldn't help but notice the sheet music, trebel clef but no bass clef? Also I'm no sheet music expert, but the piano part looks like single note melody to me, excluding the guitar chords...  :P



#75 mvirtuale OFFLINE  

mvirtuale

    Chopper Commander

  • 175 posts

Posted Sat Dec 31, 2016 10:43 AM

very beautiful "flapvert5b.zip" version works fine! :grin:
it would be possible:
1) Option 1 + 2 option to put on and take off the music
2) Pause + option 2 for horizontal and vertical
The red cartridge is very beautiful! :D






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users