Skip to content

nfrancois/konamidart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Konami Code Dart A Dart implementation for Konami Code.

Try perform it here.

Sample

import "dart:html";
import 'package:konami_code/konami_code.dart';

main(){
  konami.onPerformed.listen((_) => _changeText());
}

_changeText()=>
  query('#container').text = "Konami code performed !";

Stream give code sequence as string.

Special code

Want to use your own code ?

// Up Up !
new KonamiCode("3838").onPerformed.listen((_) => doSomething());
// Down down !
new KonamiCode.fromCharCodes([40,40]).onPerformed.listen((_) => doSomething());

About

A Dart implementation for Konami code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published