Commit Graph

120 Commits (fad254dccecbe102837e22a4b1deebc0d81eac0c)

Author SHA1 Message Date
Alexander Medvednikov 59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Larpon 2210f89ea3
sokol: type alias all `sapp` structs (#12962) 2021-12-26 13:02:51 +02:00
Benjamin Stigsen 546c388b02
gg: renaming drawing functions (#12913) 2021-12-23 13:31:25 +02:00
playX a2468e1e0c
js,os: fix integer arithmetic; add Process.close() and os.is_readable() for VJS; Make tetris run on JS backend (#12940) 2021-12-23 11:36:42 +02:00
Delyan Angelov 88435eb769
examples: avoid using `go game.run()` in Tetris 2021-12-21 16:54:26 +02:00
Delyan Angelov 4728b975e3
examples: use app.gg.quit() instead of exit(0) 2021-11-11 17:45:22 +02:00
Daniel Däschle ad3835b598
parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
Delyan Angelov 5a308005d5
examples: show the tetris ghost by default 2021-06-24 11:59:18 +03:00
Delyan Angelov f18265e6a8
gg: remove obsolete usages of `use_ortho: true` 2021-06-24 11:15:12 +03:00
Delyan Angelov dd6591b2f5
ci: fix `[if xyz ?]` usages 2021-06-22 10:46:43 +03:00
Wes 694b991929
examples: tetris: add ubuntu dependencies list (#10456) 2021-06-14 16:16:40 +03:00
Delyan Angelov c2b574384f
examples: fix dropping pieces with -autofree for tetris.v 2021-03-17 14:45:32 +02:00
Alexander Medvednikov 3a2d696fac time: time.wait() => time.sleep() 2021-02-27 20:41:06 +03:00
zakuro ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
Alexander Medvednikov d4a05bebde gg: use gg types for Events instead of sapp 2021-02-17 06:44:01 +01:00
Delyan Angelov 32cc95a340
test-cleancode: check some of the examples too 2021-02-04 17:34:59 +02:00
Larpon c818ad97eb
examples: tetris: better mobile device support (#8519) 2021-02-02 18:37:43 +01:00
Lukas Neubert ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Larpon 4044abef0e
tetris: enable to run on android, run v fmt (#8136) 2021-01-17 05:28:09 +01:00
Alexander Medvednikov f135a9949c ci: build tetris with -autofree 2020-11-27 20:41:17 +01:00
Alexander Medvednikov 5efd393af2 all: make comptime templates usable outside of vweb via $tmpl 2020-11-26 18:40:35 +01:00
Alexander Medvednikov 23c9563600 examples/tetris: remove old array hacks 2020-11-24 18:14:44 +01:00
Larpon 9f5a3b52a7
all: optimize png images (#6860) 2020-11-17 17:42:21 +01:00
Delyan Angelov 8b2e704741 examples: make `v -prod build-examples` pass without warnings/errors 2020-10-18 09:48:13 +03:00
Delyan Angelov 46c5a2c8fc v test-fmt: fix some embedded comments in expressions 2020-10-14 22:52:33 +03:00
Nicolas Sauzede 8d2f22affe
tetris: display lines (#6533) 2020-10-02 16:42:05 +03:00
Nicolas Sauzede a0aedfbe5c
tetris: display next tetro (#6532) 2020-10-02 16:37:00 +03:00
Nicolas Sauzede 1ddf46f3c6
tetris: add ghost piece (#6531) 2020-10-02 09:30:15 +02:00
Alexander Medvednikov 8c8fe02000 gg: mouse_move, mouse_down 2020-09-21 02:42:53 +02:00
Delyan Angelov d4fbf422b3 gg: support transparency for rect/triangle/etc primitives too 2020-09-20 12:05:30 +03:00
spaceface777 c1651bd271
gg: fixes and Android support (#6161) 2020-08-19 07:10:42 +02:00
Alexander Medvednikov fb4550e582 gg: new create_image() (part 1) 2020-08-01 23:40:28 +02:00
Delyan Angelov bfca55b87a examples: fix `v build-examples` 2020-07-24 13:29:47 +03:00
Alexander Medvednikov 1f3d7d393e gg: simplify text rendering 2020-07-06 19:45:00 +02:00
Hungry Blue Dev e649cf84e3
rand: reorganize: phase 2 2020-06-09 15:06:07 +02:00
Delyan Angelov 2237968ec1 gg: fix x11 scaling 2020-06-05 08:19:34 +03:00
Alexander Medvednikov 13a7ce9e69 gg: GG => Context 2020-06-04 20:26:18 +02:00
Alexander Medvednikov fb7ca56d87 gg: minor fixes 2020-06-04 19:57:16 +02:00
Alexander Medvednikov c4a6ba76a1 examples: fix bounce.v; clean up tetris.v 2020-06-04 16:53:21 +02:00
Alexander Medvednikov 6b6c9d6738 gg: make the Sokol based gg the default 2020-06-04 16:05:15 +02:00
yuyi 5ae8853648
all: change `f mut Foo` to `mut f Foo` 2020-06-04 10:35:40 +02:00
Delyan Angelov 0b7fe0a9d0 gg2: add the rest of the sokol callbacks in gg.new_context 2020-06-04 09:48:49 +03:00
Delyan Angelov 576e80b3a9 tetris: restore text rendering with gg2.ft.draw_text 2020-06-03 23:09:34 +03:00
Delyan Angelov e91642e615 tetris: more accurate fps counters on -d showfps 2020-06-03 19:52:48 +03:00
Delyan Angelov 8a23cfc0d6 tetris: support instant `d`rop key, add +FPS counter on -d showfps 2020-06-03 16:45:26 +03:00
Alexander Medvednikov 1139d3b458 gg: move text rendering to gg.ft 2020-06-02 15:35:41 +02:00
Alexander Medvednikov ad8ed851d0 examples: make tetris compile 2020-06-02 09:38:42 +02:00
Alexander Medvednikov 138d730dfa checker: prepare for the is_changed check 2020-06-02 09:00:51 +02:00
Alexander Medvednikov 39bd058acf examples: tetris: remove GLFW dependency 2020-06-01 13:04:46 +02:00
Alexander Medvednikov 9bcbb3868f gg: migrate to sokol; examples: update tetris 2020-06-01 12:57:08 +02:00