Log In  
Log In  

@DrPete

Follow
Follow

Cart [#43741#] | 2017-08-29 | License: CC4-BY-NC-SA | Embed
12

I saw a couple of articles earlier about the Fizzlefade effect from Wolfenstein 3D. It's a transition effect that draws over random pixels, but never draws over the same pixel twice.

I thought this was a cool trick, and I wanted to try it out and see it in action, so I implemented the Feistel network technique from antirez's article. Posting here in case anyone likes the effect and wants to recycle the code.

P#43743 2017-08-29 16:38 ( Edited 2018-09-10 00:26)

Cart [#30419#] | 2016-10-09 | License: CC4-BY-NC-SA | Embed
2

Sometimes, your game makes use of a randomly generated sequence, but it would be nice to smooth out some of the short-term variance in it (e.g. long stretches of not getting a long piece in Tetris). This cart showcases some algorithms you can use to generate smoother-feeling random sequences, and lets you visualize them for tetrominoes, digits, or dice rolls.

Thanks to TetrisConcept without whom I would never have learned about these techniques, and to the developers who invented them.

See the code comments for more on the implementation of each randomizer.

P#30420 2016-10-09 11:17 ( Edited 2016-10-10 14:17)

Cart [#30826#] | 2016-10-13 | License: CC4-BY-NC-SA | Embed
7

A little math puzzle for my first Pico-8 game.

Instructions (see also the in-game demo):
Pop pairs of numbers to gain points. When you pop numbers, you'll gain their units-digit of their sum, e.g:
3 + 5 = +8 points
7 + 7 = +4 points (because 7 + 7 is 14)
9 + 3 = +2 points (because 9 + 3 is 12)
after which, the popped pair is replaced with the result, and a new number is added onto the end. (It'll make sense after you've played.)

As a special bonus, if you would gain 0 points from a move (e.g. 0 + 0 or 8 + 2), you'll instead gain an extra turn.

CHANGELOG:
1.0 [2016-10-13]

  • state of the art GRAPHICS and ANIMATIONS (well, scrolly bubbles and stuff)
  • rudimentary sfx
  • UI improvements
  • in-game instructions/demo
  • switch randomizer again, old one was a bit too cyclic
    0.0.2 [2016-10-09]
  • tweak how random numbers are generated to be more even-looking
  • fix a bug where only the last byte of your high score is saved (use dset/dget instead of poke/peek)
    0.0.1 [2016-08-22]
  • initial version
P#27203 2016-08-22 03:40 ( Edited 2016-10-13 19:40)

X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-12-13 12:58 | 0.056s | 4194k | Q:38