Commit Graph

1437 Commits (a2170a4291417405f29ce8219d81a631f8a6d13e)
 

Author SHA1 Message Date
nick black a2170a4291 ncplot: add_sample(), set_sample() #430 4 years ago
nick black b3e874a179 ncplot: fold minx, maxx into rangex 4 years ago
nick black 09d8912d4e notcurses-keyplot #430 4 years ago
nick black 5239900ac8 notcurses-input: upgrade shared_ptr to unique_ptr 4 years ago
nick black 5e27499194 add notcurses-keyplot #430 4 years ago
nick black d541cda306 independent variable 4 years ago
nick black 4afda7a625 float some geometry concepts 4 years ago
nick black e87fbb3003 Throw up an ncplot unit test 4 years ago
nick black 5aedb3491d ncplot_plane(), ncplot_destroy() 4 years ago
nick black 69d6240741 ncplot_destroy, ncplot(3) man page 4 years ago
nick black f29a5a7bd9 declare ncplot_create() 4 years ago
nick black af478ccf95
README: book has been published, link it =] 4 years ago
nick black d1724d6183
tetris: kill unnecessary return in MoveRight() 4 years ago
nick black ac31bf3a12
awww fuck me in the ass #429 4 years ago
nick black a45d888601
All fill-type functions return cells changed
Fill-type functions used to return 0 for success, and -1
on failure. They now return the number of cells written
on success, similarly to ncvisual_render(). Resolves #427.
4 years ago
nick black a3323fb22c
Enforce UTF8 where necessary in unit tests #428
Certain unit tests required UTF8 encoding on the output
terminal to work (#428). This includes anything which does
any kind of fill. Add enforce_utf8() checks to all such
tests that were missing them. Unit tests once again pass in
a pure ASCII environment.
4 years ago
nick black bd7bf65c62
colloquy: spin up a rust notcurses instance 4 years ago
nick black 8651486ad7
Don't say DirectColor when TrueColor is meant 4 years ago
nick black 6c81cb3b45
rust: use libnotcurses-sys, add test 4 years ago
nick black cbacf006e5
libnotcurses-sys: update tests for new notcurses_options 4 years ago
nick black ddf206462b
colloquy: branch on widget type 4 years ago
nick black a64119931a
colloquy: flesh out options parser 4 years ago
nick black a77774f4dc
notcurses_at_yx(): value-result u32+u64, not cell
Resolves #410. notcurses_at_yx() accepted a cell*, but the
gcluster of this cell was always set to 0. The EGC is instead
a heap-allocated copy, returned as the primary return value.
This is due to the absence of an egcpool to bind against.
Existing callers can be converted thus:

* instead of passing cell 'c', pass &(c)->attrword, &(c)->channels
* either initialize 'c' with CELL_TRIVIAL_INITIALIZER, or set its
   gcluster field to 0 following the call

I've updated all calls from tests/demos, updated the docs, and
updated the C++ and Python wrappers.
4 years ago
nick black 73b61f6a69 Add bound planes (#71) plus docs/tests
Add ncplane_bound(3). This allows a new plane N to be created in the
*bound* state relative to another ncplane B. If B moves, N moves the
same amount. If N is moved, the coordinates are taken relative to B
as opposed to the standard plane. If B is destroyed, N is destroyed.
Each plane can have many planes bound to it, but can only be bound to
a single plane. Add ncplane_reparent(3). This allows a plane to be
detached from any plane to which it is bound, and optionally rebound
to a new plane. The standard plane cannot be reparented.
Documentation and unit tests have been added for both.
4 years ago
nick black 5bcd643a68
tetris: increase gravity with level #421 4 years ago
nick black 4a02d7ed80
tetris: rewrite moveleft()/moveright() with invalidmove() #421 4 years ago
nick black cb85e120e0
tetris: replace PieceStuck() with InvalidMove() #421 4 years ago
nick black 1665bbad8b
tetris: InvalidMove() for detecting bad rotations #421 4 years ago
nick black ff71eda6a1
reels are a cylinder, not a torus 4 years ago
nick black 5955125921
Tetris: remove dead code #421 4 years ago
nick black 925e416b8d
tetris: different colors for different levels 4 years ago
nick black 5b7e2f574c
tetris: fix up PieceStuck() #421 4 years ago
nick black 91f907a184
gradient_sized (C++): fix parameter name 4 years ago
nick black ae792bbd5c
tetris: ctrl+L for refresh 4 years ago
nick black 752c29e648
Tetris: fix line clearing of final column #421 4 years ago
nick black e500d0f8f4
tetris: print user name above score #421 4 years ago
nick black 4f6275b738
tetris: tighten LockPiece() still further 4 years ago
nick black e84b896835
tetris: tighten up LockPiece() 4 years ago
nick black 34e4a5dbb9
tetris: display score and level #421 4 years ago
nick black 4afa02a44f
Tetris: clear out lines #421 4 years ago
nick black 1cd9ec2b31
tetris: clear out lines #421 4 years ago
nick black ee754ed241
Tetris: simplify MoveDown(), don't be stupid 4 years ago
nick black fff9118e17
tetris: factor out LockPiece() 4 years ago
nick black d120e74580
Tetris: end game at the correct failpoint #421 4 years ago
nick black d491d532bb
Tetris: gradient stain on fixed pieces #421 4 years ago
nick black 5864b37d0a
Tetris: place new pieces on mults of 2 #421 4 years ago
nick black b7c9746cf0
Tetris: always move in chunks of two columns #421 4 years ago
nick black 642741f2c9
Tetris: take upper halves into account for PieceStuck() 4 years ago
nick black d5e0b24f01
Tetris: PieceStuck() learns of lower halves 4 years ago
nick black 25dd65a172
Tetris: render after creating a new piece 4 years ago