summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code2/examples/spaceinvaders.zpy
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2024-10-15 10:19:30 +0100
committerthing1 <thing1@seacrossedlovers.xyz>2024-10-15 10:19:30 +0100
commitfaef2d81c224b715c5e429d04c59ba50fb772d9e (patch)
tree2f75197a884ded3486c14e09908cb23bd24b968c /comp/lucas-standen-NEA/code2/examples/spaceinvaders.zpy
parent3564e513623bb3fc4d528d3d29df9aa91dae1396 (diff)
added a stupid amount of work to zpy, and started the document work in latex
rather than groff
Diffstat (limited to 'comp/lucas-standen-NEA/code2/examples/spaceinvaders.zpy')
-rw-r--r--comp/lucas-standen-NEA/code2/examples/spaceinvaders.zpy2
1 files changed, 2 insertions, 0 deletions
diff --git a/comp/lucas-standen-NEA/code2/examples/spaceinvaders.zpy b/comp/lucas-standen-NEA/code2/examples/spaceinvaders.zpy
index 698999a..5e51ed3 100644
--- a/comp/lucas-standen-NEA/code2/examples/spaceinvaders.zpy
+++ b/comp/lucas-standen-NEA/code2/examples/spaceinvaders.zpy
@@ -8,6 +8,7 @@
(def exists:bool)
(endstruct)
+//# this checks if 2 entitys are touching
(defun touching bool a:entity* b:entity*)
(def r1:Rectangle)
(def r2:Rectangle)
@@ -24,6 +25,7 @@
(return (CheckCollisionRecs r1 r2))
(endfun)
+//# the main loop of the program
(defun main int)
(InitWindow 800 800 "test test")
(SetTargetFPS 60)