Commit graph

235 commits

Author SHA1 Message Date
qwx 0daed9edea doom: clean up temporary mus files 2017-08-10 17:09:49 +02:00
qwx 16ef6e5596 add games/wadfs 2017-08-10 11:39:18 +02:00
aiju 66c22f3908 games/md: copy updated cpu.c from blit 2017-04-27 08:46:44 +00:00
spew 9cf5198145 libavl: lookup can return the closest match 2017-04-22 13:59:37 -05:00
aiju b795a6d9dc blit: always show top-left corner; add tony kaku's -m flag 2017-04-19 10:13:36 +00:00
aiju 4175b19c94 games/blit: remove strange debugging line 2017-04-01 08:57:03 +00:00
cinap_lenrek e51044884b move blit roms to /sys/lib/blit 2017-03-29 01:33:16 +02:00
cinap_lenrek 5a36451a5e blit: fix mkfile 2017-03-29 01:20:13 +02:00
aiju 83dd98022d games/blit: mkfile: install into /bin/games 2017-03-28 19:48:50 +00:00
aiju 447672be5c add games/blit 2017-03-28 19:43:09 +00:00
spew b2b80a3da5 games/galaxy: fix exit race condition by pausing the galaxy before threadexitsall 2017-03-25 13:51:33 -05:00
spew 85b8d253d4 games/galaxy: parallelize gravitational force calculations
Once the Barnes-Hut tree is constructed, the gravitational
force calculations can be done in parallel by dividing the
bodies up between a number of procs.
2017-03-25 13:05:47 -05:00
cinap_lenrek 08453422b1 games/doom: don't spawn midi process when opening /dev/audio failed (thanks qwx) 2017-03-17 01:02:01 +01:00
spew 59ed389a6e games/galaxy: fix creation of new bodies
I accidentally deleted the line that sets the initial
position of the vector
2017-03-12 18:52:36 -05:00
spew 3f2d3721de games/galaxy: avoid unnecessary calculations
It is not necessary to recalculate the center of the
screen every time.
2017-03-12 18:33:54 -05:00
spew dff1e3813f games/galaxy: fix zoom
Zooming when far away from the center of gravity
of the galaxy would zoom the center of the screen
out of view. Now adjust the origin so that the
center of the screen stays centered
2017-03-12 18:24:45 -05:00
spew 2c6c64c474 games/galaxy: simplify zoom loop 2017-03-10 10:37:12 -06:00
spew acd1a3edda games/galaxy: new mouse behavior
MB1 moves the galaxy. MB2 zooms the galaxy. New body creation
moved to the menu
2017-03-10 09:57:23 -06:00
spew 0e9973c80f games/galaxy: Change button 2 to reposition the galaxy, remove "move" from the button 3 menu 2017-03-01 15:59:26 -06:00
spew 0ab5d34be4 games/galaxy: tweak pausing behavior 2017-02-27 19:56:46 -06:00
cinap_lenrek 9ce9299d17 games/doom: ... but keep fd=2 open :) 2017-02-27 00:01:39 +01:00
cinap_lenrek 6064e1b6fb games/doom: avoid /dev/cursor fd leak into music process 2017-02-27 00:00:58 +01:00
cinap_lenrek 8834003afa games/doom: music support (thanks qu7uux) 2017-02-26 22:14:10 +01:00
cinap_lenrek 577de86669 midi: ignore bends, allow piping from stdin and to stdout, write in chunks from within sample loop (thanks qu7uux) 2017-02-26 19:30:48 +01:00
cinap_lenrek 297bf25f61 add games/mus midi converter (by qu7uux) 2017-02-26 19:23:52 +01:00
spew 63870e3ef4 games/galaxy: fix crash on write to closed display 2017-02-19 10:02:56 -06:00
spew 5aabf85d7c games/galaxy: add n-body simulator 2017-02-18 09:08:51 -06:00
spew 412b7501e4 games/mix: remove unused variable 2017-02-18 09:07:46 -06:00
cinap_lenrek b61799df43 playlistfs: fix playc chan type (thanks mischief) 2017-02-15 08:53:31 +01:00
cinap_lenrek f2d2f9374b jukefs: fix realloc sizes (thanks mischief) 2017-02-15 08:50:03 +01:00
aiju d9a964788b games/gb: fix bug that prevented timer data from being accessed (thanks qwx) 2017-02-12 12:28:02 +01:00
aiju fe1e95d6d8 games/gb: timer array should be unsigned (thanks qwx) 2017-02-12 00:38:17 +01:00
aiju 6176b55759 games/gb: fix typo in the routine to load timer data (thanks qwx) 2017-02-11 23:52:35 +01:00
spew 3b24eb4c1f games/mix: implement Knuth's specification for comments 2017-02-03 18:55:02 -06:00
spew acd4a952bd games/mix: fix STZ bug, print CMPA instruction 2017-01-23 13:41:21 -06:00
spew 339fda9164 games/mix: remove tests directory 2017-01-17 20:52:49 -06:00
spew 4b68ddfb5a games/mix: document -g option, rename tests to examples as it is in the man page 2017-01-17 20:51:08 -06:00
spew a0cc369c15 games/mix: Add Knuth MIX emulator/assembler 2017-01-10 11:42:11 -06:00
cinap_lenrek a0d4c5e208 make error handling in 9p service loops consistent
when we get eof, stop the loop immidiately and do not
rely on the read to eventually return an error.

when convM2S() fails to decode the message, error out
and stop the loop. there is no point in continuing.
2016-07-24 02:21:32 +02:00
cinap_lenrek cabbe0a84c doom: use Kprint for pause function (from qu7uux)
the pause function is different from just accessing the menu: it pauses both
single and multiplayer games, stops music and sound, and is recorded in demos
(does not cause a desync, unlike menu access).
this uses Kprint rather than Kbreak because Kbreak is e.g. Kctl+pause on some
keyboards.
2016-06-30 17:18:30 +02:00
cinap_lenrek ca8ca008f4 doom: fix blazing door sounds (from qu7uux)
blazing doors are a "fast" door type with its own sound effects, introduced in
doom2. doom2 map 2 has one right at the beginning.

this fixes two bugs:
- when a closing blazing door is completely shut, the closing sound effect is
  erroneously played again (the first time being when it began closing). this
  gives the impression of two doors closing.
- when reopening a closing blazing door (standing underneath a blazing door
  while it's closing), the sound effect for regular doors opening is played,
  instead of the one for blazing doors, because of a missing case in the switch
  statement.
2016-06-30 17:13:47 +02:00
stanley lieber cb1a49daac /sys/src/games/mkfile: add timmy 2016-06-26 16:47:19 -04:00
aiju 4821c261c4 added games/timmy 2016-06-23 21:12:06 +02:00
cinap_lenrek 45e2b4dfe9 games/mahjongg: off by one in bmatch(), fix hint() redraw (thanks Kenji) 2016-05-07 15:19:41 +02:00
spew 479ccd0aa1 add "snake" tracing effect to mole 2016-05-03 09:29:39 -05:00
cinap_lenrek ce84082205 change /dev/kbd to return multiple messages per read 2016-04-03 22:54:22 +02:00
BurnZeZ 730578d40c games/life: add -d delay parameter, -b color reversal parameter, and update manpage 2016-03-19 20:03:10 -04:00
cinap_lenrek 02dce7a2e4 games/doom: handle allocimage() failure 2016-02-28 11:44:53 +01:00
cinap_lenrek 340d83d49d games/doom: fix white window issue on exit
make kbdproc() and mouseproc() share fd table with the main proc
and not explicitely close the file descriptors. so /dev/mouse gets
closed *after* /dev/draw/new to avoid the white window refresh issue.
2016-01-30 19:11:33 +01:00
cinap_lenrek 285d96be4d doom: fix bogus pointer arithmetic, do sfx initialization in two passes for linked sounds 2015-10-08 00:37:54 +02:00