1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

42 Commits

Author SHA1 Message Date
b584e1df98 checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932) 2022-10-02 22:39:11 +03:00
69c9d47a40 pref,os,sokol,cgen: ease compilation of 2048 with -os wasm32_emscripten (#15820) 2022-09-20 00:17:13 +03:00
8b962f8446 checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
ca30397e7a cli: fix compilation 2022-06-26 07:08:05 +03:00
e5bbb23389 examples: fix 2048 gameplay (#14838) 2022-06-23 21:07:30 +03:00
dd6629e932 examples: fix 2048 scaling on Android (#14380) 2022-05-15 09:14:18 +03:00
114a341f5f rand: simplify rand.PRNG, move to optional types for error handling (#13570) 2022-02-23 12:36:14 +02:00
59357e873d math: move the math.mathutil generic min/max/abs fns to math (#13042) 2022-01-05 18:02:20 +02:00
546c388b02 gg: renaming drawing functions (#12913) 2021-12-23 13:31:25 +02:00
89eb5425cd examples: clean file path usage in the examples, move all the fonts in the common assets folder (#12736) 2021-12-06 09:53:46 +02:00
4728b975e3 examples: use app.gg.quit() instead of exit(0) 2021-11-11 17:45:22 +02:00
ad3835b598 parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
8af6237e28 gg: fix width and height in draw_rounded_rect primitive (#9926) 2021-04-29 10:58:57 +03:00
0567cbe431 examples: fix compilation with -prod 2021-04-23 14:48:07 +03:00
a67d49050c math: add a pure V math.mathutil, with generic min, max and abs functions (#9176), and use it consistently 2021-03-12 11:28:04 +02:00
d1cebcb608 2048: remove [no_inline] (no longer needed) 2021-02-22 21:40:55 +02:00
b4dc6c83cd gg: handle Android's own native dpi scaling factor (#8908) 2021-02-22 21:24:18 +02:00
e662d61573 examples: fix 2048 scaling 2021-02-17 16:18:33 +01:00
d4a05bebde gg: use gg types for Events instead of sapp 2021-02-17 06:44:01 +01:00
576492af4e examples: fix 2048 on Apple M1 2021-02-05 19:35:51 +02:00
32cc95a340 test-cleancode: check some of the examples too 2021-02-04 17:34:59 +02:00
dbf84520f1 all: update assoc syntax (#8274) 2021-01-22 23:24:48 +01:00
512f62b7a1 android: enable custom (e)println output via android log system (#8135) 2021-01-17 05:32:59 +01:00
a1c67232d0 checker: fix duplicate variable name (fix #265) (#7982) 2021-01-10 21:41:29 +01:00
9291fb5e0c checker: disallow comparison between enum and int (#7886) 2021-01-08 17:41:52 +01:00
480d78de2e examples/2048: make tiles have rounded corners (#7763) 2021-01-01 13:04:51 +02:00
11808f9fa3 parser: fix silent errors (#7271) 2020-12-12 04:06:09 +01:00
9f5a3b52a7 all: optimize png images (#6860) 2020-11-17 17:42:21 +01:00
9772eb7c96 examples: fix warnings when doing ./v -W -progress -check-syntax build-examples 2020-10-26 13:14:26 +02:00
71e1ca72ec examples/2048: run v -w fmt 2048.v 2020-09-27 22:47:26 +03:00
faca9e2f06 examples/2048: new end screens with alpha, better touch support (#6482) 2020-09-26 09:54:04 +03:00
0cdeaaff6b examples: make 2048 compile 2020-09-23 20:50:03 +02:00
99e607d3ac examples/2048: limit the simulation depth in auto mode to 8 2020-09-23 09:26:22 +03:00
46be0710ac examples/2048: add a simple Monte Carlo player on a 2020-09-22 17:32:35 +03:00
6bf1865678 examples: add a link to the 2048 WA demo 2020-09-20 19:31:16 +02:00
99a46c8657 2048: fixed movement bug and show score at end (#6353) 2020-09-12 09:25:44 +03:00
4aaeaa4331 examples/2048: some updates and improvements (#6343) 2020-09-11 13:19:38 +03:00
18034bb95c gen: fix multiple call of expression in match (#6324) 2020-09-08 00:38:24 +02:00
35cbca96e1 checker: implement [required] struct field attribute (#6276) 2020-08-31 23:15:40 +02:00
912bc8bca1 2048: fix crash, when compiled with gcc > 6 and -prod 2020-08-24 11:12:52 +03:00
c1651bd271 gg: fixes and Android support (#6161) 2020-08-19 07:10:42 +02:00
ed156838e6 examples: add 2048 game 2020-08-18 09:29:43 +03:00