Commit Graph

60 Commits (3502c5fbc268f3cc1539e41ef1c3d7a3180dafa0)

Author SHA1 Message Date
John Benediktsson 3ea37a93eb more H{ } make fixes. 2012-07-19 14:38:22 -07:00
John Benediktsson 1a73e79ef7 cleanup some use of with-scope. 2012-07-19 13:55:34 -07:00
John Benediktsson 90d0951ada more use of H{ } make. 2012-07-19 11:24:45 -07:00
Doug Coleman 42f4dc36b2 namespaces: Rename ``bind`` to ``with-variables``. Update a few places that called ``global [ ] with-variables`` to use ``with-global``. 2012-07-19 00:02:47 -07:00
John Benediktsson 5a943b32c4 Remove stack effects from HELP: declarations. 2011-10-20 19:36:11 -07:00
John Benediktsson f4a6e10818 More cleanup of unused stuff. 2011-10-19 11:01:16 -07:00
Doug Coleman 76580da5d5 Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183.
Fixes #209.
2011-09-29 11:28:28 -07:00
John Benediktsson 4f42c72012 specialized-arrays: performed some cleanup.
Specifically,
    •   Created >c-array to be replacement for >T-array.
    •   Created cast-array to be generic replacement for all T-array-cast words.
    •   Created c-array@ to be generic replacement for T-array@ words.
    •   Replaced usages of <T-array> with T <c-array>
    •   Replaced usages of <direct-T-array> with T <c-direct-array>
    •   Replaced usages of >T-array with T >c-array
    •   Replaced usages of T-array-cast with T cast-array
    •   Replaced usages of malloc-T-array with T malloc-array.
    •   Removed malloc-T-array.
    •   Removed T-array-cast.
    •   Removed T-array@.
    •   Removed >T-array.

I also added (but didn't change any code to use):
    •   T c-array-type, returns T-array
    •   T c-array?, returns T-array?
    •   c-array{ T ... }, returns T-array{ ... }

Bootstraps just find on Mac OS X.  Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Joe Groff 2bd6de9a02 slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global 2011-09-19 10:03:43 -07:00
Slava Pestov d955c14b9c Oops 2011-09-06 00:25:33 -07:00
Slava Pestov 988e77463e game.loop: split off benchmarking code into game.loop.benchmark 2011-09-05 23:58:32 -07:00
Joe Groff 07f2d75316 game.debug.tests: fix half-changed accessor names (reported by sf17k) 2011-04-11 11:50:28 -07:00
Slava Pestov 974f4cfda4 game.loop: remove unneeded dependency on tools.memory vocab 2010-10-31 22:50:37 -05:00
Slava Pestov 7d4b64e361 rename benchmark.struct to tools.time.struct since it is not a benchmark 2010-08-11 21:51:19 -07:00
Doug Coleman e486d74460 Fix accessors 2010-06-22 14:10:12 -05:00
Doug Coleman d8ab5edb83 Fix using list 2010-06-21 12:33:34 -05:00
Doug Coleman d4e30aedcf Use two timers in game.loop 2010-06-16 16:23:31 -05:00
Doug Coleman 22faa12205 Add a word that waits for a game to finish running 2010-06-16 16:23:30 -05:00
Doug Coleman d9bd3d572e Fix load error in game.loop 2010-06-16 16:23:29 -05:00
Doug Coleman a6f0abb9a2 Rename alarms -> timers 2010-06-10 16:39:13 -05:00
Doug Coleman 445b43d924 Use benchmark.struct vocab to record tick/draw timings in game loop 2010-06-10 15:37:36 -05:00
Doug Coleman 46ad6b63e6 Add start-game word, make foo-attributes words when GAME: foo is defined, don't lose the loop object after the game is over 2010-06-10 15:37:31 -05:00
Joe Groff b8c6799527 key-caps, joystick-demo: move demos to game.input.demos.key-caps, game.input.demos.joysticks 2010-05-29 00:20:09 -07:00
Slava Pestov d68b25da95 chipmunk.demo: fix load error 2010-05-22 03:24:04 -04:00
Doug Coleman 8656725f78 Finish renaming micros->nanos in game code, update libs 2010-05-21 23:50:42 -05:00
Doug Coleman e75b85de30 Update code base for new alarms api 2010-05-21 20:42:12 -05:00
Doug Coleman 39013d1373 Fix using list for keys/values change 2010-05-21 12:48:06 -05:00
Doug Coleman 5a08add73a Use overhauled alarms in game.loop 2010-05-21 12:48:06 -05:00
Slava Pestov 627295f094 Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO) 2010-05-06 17:21:02 -04:00
Joe Groff 0aff35bfee game.models.half-edge: additional vertex-diagonals word 2010-04-28 18:52:40 -07:00
Joe Groff 84c79879df game.models.half-edge words for walking half-edge model representation 2010-04-28 18:41:36 -07:00
Daniel Ehrenberg aa6158b366 Changing require-when usages to the new syntax for require-when 2010-04-18 14:29:24 -05:00
Daniel Ehrenberg 240c6819a9 Merge branch 'master' into conditional 2010-03-28 19:49:32 -04:00
Erik Charlebois fcec127d2d Debug rendering vocabulary 2010-03-27 14:31:24 -07:00
Daniel Ehrenberg eb060443db Updating code to use require-when rather than vocab [ require ] when 2010-03-18 01:13:37 -04:00
Slava Pestov e3ddafbdec core-foundation.run-loop: clean up and speed up some code to fix starvation issue exposed by game.loop (reported by Joe Groff) 2010-03-01 12:22:18 +13:00
Joe Groff 433f0d1ea6 game.worlds: construct game-loop object before begin-game-world is called so begin-game-world can change it before the loop is started 2010-02-24 20:07:13 -08:00
Joe Groff 22ce5eb45c adjust wording in game.loop docs 2010-02-20 21:58:09 -08:00
Joe Groff 271afe3fde game.loop: separate delegate into tick-delegate and draw-delegate 2010-02-20 10:47:03 -08:00
Slava Pestov 220dd88a2c Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Slava Pestov 48373a6c4c Remove math.floats.parser now that its no longer needed 2010-02-08 16:52:29 +13:00
Slava Pestov 38ca12e9d8 math.floats.parser: new vocabulary with old string>float word 2010-02-08 08:32:13 +13:00
erikc d435e5256c Add material loading for OBJ format, generalize model-viewer and removed hard-coded paths 2010-02-05 15:51:53 -08:00
erikc e1223e056f Unify obj and collada loading under a common models umbrella loader 2010-02-01 18:44:09 -08:00
erikc c86bedd912 Missed a few changed 2010-01-31 16:56:58 -08:00
erikc 676673fc7e Factored collada implementation a bit more and fixed some bugs 2010-01-31 16:56:26 -08:00
Joe Groff 87c09af8f3 update game.worlds and gpu.demo.raytrace for audio.engine changes 2010-01-20 11:44:18 -08:00
Joe Groff 67472040a9 adjust game.worlds docs language 2010-01-20 11:32:21 -08:00
Joe Groff ef7b5b92f1 add note to game.worlds docs that draw-world* and resize-world can have methods added in addition to the *-game-world specific methods 2010-01-19 19:12:00 -08:00
Joe Groff a99f1fd20e make a protocol for audio.engine sources/listeners. fix multiple clip play/pause/stop words, and fix when a clip gets disposed during update-audio 2010-01-19 17:39:11 -08:00