Commit Graph

  • fad703d504 made videos links prettier c++-port Karma Riuk 2023-08-02 19:12:19 +0200
  • da802cff9d Added toc to readme Karma Riuk 2023-08-02 19:09:42 +0200
  • a64670503a removed before.webm Karma Riuk 2023-08-02 19:09:32 +0200
  • d6a2727755
    finally got videos to work!! Arnaud 'Karma' Fauconnet 2023-08-02 19:03:40 +0200
  • de4e741d6a trying to make the video in the readme work :) Karma Riuk 2023-08-02 18:07:03 +0200
  • 2b844647f4 trying to make the video in the readme work :) Karma Riuk 2023-08-02 18:05:30 +0200
  • e9f90bd11c Added before vs after to readme Karma Riuk 2023-08-02 17:55:43 +0200
  • 87b4febc5d Added README with abstract Karma Riuk 2023-08-02 17:34:11 +0200
  • 082acc4451 Added random color generation to the polygons, also made so that the color of the vector indicating speed is the same as the color of the polygon, but a little lighter Karma Riuk 2023-06-13 13:50:07 +0200
  • 79ac43f05c Set max length for arrow heads Karma Riuk 2023-06-13 13:49:48 +0200
  • 89e250dcba Removed the passing of the mass through parameters. Now the mass is determined by the area of the polygon Karma Riuk 2023-05-19 16:31:38 +0200
  • ce0cf102ba Reformated collisions.cc Karma Riuk 2023-05-19 16:29:05 +0200
  • a424fec9a9 Now when polygons collide, they get moved by the overlap to ensure that they don't get stuck in the following frames, it works very well and Carza is happy :)))))) Karma Riuk 2023-05-19 15:24:11 +0200
  • 92e51a96be Added the destroy method for the polygons Karma Riuk 2023-05-19 10:18:49 +0200
  • 00dad13b2f Commented out some couts Karma Riuk 2023-05-18 11:24:08 +0200
  • 784eb823ec Updated Makefile Karma Riuk 2023-05-18 11:23:54 +0200
  • 697d958bbf Added the commandline argument to enable polygons Karma Riuk 2023-05-18 11:23:31 +0200
  • d2e95a7d93 Added entry to gitignore Karma Riuk 2023-05-18 11:18:55 +0200
  • a774b8d517 Removed a lot of useless fluff Karma Riuk 2023-05-17 15:40:55 +0200
  • deeb237f45 Added a more complex starting setting Karma Riuk 2023-05-17 15:38:05 +0200
  • 40dde35f19 Added restitution coefficient control (introduced a lot of unwanted behaviour, but fixable) Karma Riuk 2023-05-17 13:38:46 +0200
  • a6c4771d1a Added gravity to polygons Karma Riuk 2023-05-17 13:33:07 +0200
  • 7b5273b9bf Added gravity vector for polygons in gravity.h Karma Riuk 2023-05-17 13:30:05 +0200
  • 958a784371 Reformated gravity.h Karma Riuk 2023-05-17 13:29:38 +0200
  • 2bba3155da Added the gravity vector method for polygons (kinda blindly copied and pasted it from the ball version, hope it works) Karma Riuk 2023-05-17 13:27:11 +0200
  • 7df64d460c Reformated gravity.cc Karma Riuk 2023-05-17 13:25:36 +0200
  • 487b5fe00b Fixed most of the bugs of the collision detection (still some cases there) Karma Riuk 2023-05-17 13:22:34 +0200
  • b4203884ef Changed to delta so that the edge cases happen less (since the 'move less' each frame) Karma Riuk 2023-05-17 13:21:43 +0200
  • 398cae3b24 Added toString method to polygons, together with fields "label" and "collided_with" Karma Riuk 2023-05-17 13:21:06 +0200
  • 399949876f Made the draw method of vec2d const so that compiler stops complaining Karma Riuk 2023-05-17 13:20:40 +0200
  • 3c2335235e Added labels to polygons to make it clear what is getting printed Karma Riuk 2023-05-17 13:19:57 +0200
  • 33cbe4a683 Added the possibility to go frame by frame pressing '.' Karma Riuk 2023-05-17 13:18:51 +0200
  • 37a76e3e8d Revamped collision detection, missing the vertex inside vertex case (which is happening a bit too often imho) Karma Riuk 2023-05-06 14:07:47 +0200
  • 2cfa921547 Added a general polygon to the initial state Karma Riuk 2023-05-06 14:06:45 +0200
  • c0d4343b77 Added general polygon generation WITH CORRECT INERTIA YUHUU Karma Riuk 2023-05-06 14:04:58 +0200
  • ad841588ad Refactored collision detection (last version before changing the algo) Karma Riuk 2023-04-25 12:09:07 +0200
  • 6b049eb831 Added new polygons in polygons_init_state() and now drawing the point of impact and the normal vector in that point Karma Riuk 2023-04-25 12:05:39 +0200
  • 02f60aaa8a Added == operator to vec2d Karma Riuk 2023-04-25 12:03:41 +0200
  • 699490fefc Added the possibility of drawing a vector Karma Riuk 2023-04-25 12:02:56 +0200
  • bf9545a7a0 Added regular polygons and started implementation of arbitrary (general) polygons Karma Riuk 2023-04-25 12:01:51 +0200
  • 4a7e5834d3 Quick refactoring and reformating Karma Riuk 2023-04-21 09:01:35 +0200
  • 1c58530e98 Now the borders of the windows are walls of infinite mass Karma Riuk 2023-04-10 14:40:16 +0200
  • c7b9500bc4 Fixed inertia for rectangles Karma Riuk 2023-04-10 14:39:36 +0200
  • d0de911344 got the speed working (yay) but the angular velocity that results is superrrr low, thus not creating any rotation after impact, wierd... Karma Riuk 2023-04-02 21:53:21 +0200
  • 7dc54ddfe5 Made the angular speed a double Karma Riuk 2023-03-25 14:03:07 +0100
  • 4d14f2a30b Added wall bouncing logic (flawed); added bounding box computation and display Karma Riuk 2023-03-25 10:57:32 +0100
  • d6bf526459 Generator now makes the polygons origin at their center of mass, easier for rotation Karma Riuk 2023-03-20 15:33:35 +0100
  • e6a3979de1 Added a generator for polygons to make the init easier Karma Riuk 2023-03-14 23:10:31 +0100
  • 48a1b3ade4 Added the possibility to set the fields of the polygon class in a functional programming style Karma Riuk 2023-03-14 23:09:48 +0100
  • 37198d4669 fixed implementaion mistake Karma Riuk 2023-03-14 22:00:55 +0100
  • 9fd87b7f29 Simple implementation of polygons, you can create them in the init and draw them Karma Riuk 2023-03-14 21:46:36 +0100
  • 7a5bf13575 Added a way to output vec2d in an easy way Karma Riuk 2023-03-14 21:45:44 +0100
  • d0670178c0 Reformated main.cc and spaceship.cc Karma Riuk 2023-03-14 21:45:20 +0100
  • af31bc7148 Added entries to gitignore Karma Riuk 2023-03-10 21:31:52 +0100
  • c1dc49a9dc GUI controls for restitution coefficient and gravity field Antonio Carzaniga 2022-12-28 18:50:12 +0100
  • 19125826bd added game pause/resume toggle Antonio Carzaniga 2022-12-28 12:42:14 +0100
  • 6078f57647 Merge branch 'inelastic-collisions' into c++-port Antonio Carzaniga 2022-12-28 11:47:05 +0100
  • 5a6fea0522 no penetration also for central gravity ball Antonio Carzaniga 2022-12-27 18:26:03 +0100
  • db219a255a inelastic collisions, controllable restitution coefficient Antonio Carzaniga 2022-12-27 17:54:40 +0100
  • f30ca5e594 collision check enabled by default using simple check. Antonio Carzaniga 2022-06-10 12:47:33 +0200
  • 94ec166a4a fix variable renaming in ball_elastic_collision. Antonio Carzaniga 2022-06-10 12:47:03 +0200
  • 4725f1eb6a more meaningful variable names in elastic collision for balls Antonio Carzaniga 2022-06-01 13:06:55 +0200
  • 7064eb5174 2D vector objects for positions, velocities, etc. Antonio Carzaniga 2022-06-01 11:09:35 +0200
  • 2240ba1b69 basic modularization of ball and ball_face classes Antonio Carzaniga 2022-05-30 18:05:53 +0200
  • 139d8d2997 fix: using CXX also as linker. Antonio Carzaniga 2022-05-30 18:03:41 +0200
  • 8f9a8b71c9 cleared unused game framework declarations. Antonio Carzaniga 2022-05-30 16:02:25 +0200
  • 4c2273d271 first, basic transition to C++ Antonio Carzaniga 2022-05-30 15:59:45 +0200
  • f2203cfa00 (new_ball_face) fixed memory leak for cairo patterns. Antonio Carzaniga 2021-12-12 11:54:43 +0100
  • 53e71fa27d (gravity) added radial, Newtonian (1/r^2) force field Antonio Carzaniga 2021-12-12 00:36:07 +0100
  • dc0e5be086 (spaceship_draw) better shape for thrust waves Antonio Carzaniga 2021-12-11 22:29:55 +0100
  • 9028f1af74 modularization: main, game, balls, c_index, spaceship, gravity Antonio Carzaniga 2021-12-11 21:32:48 +0100
  • 1fec301126 (window) removed global variable for game window. Antonio Carzaniga 2021-12-11 18:05:13 +0100
  • 3eb4f1f243 removed inoperative clear-alpha feature. Antonio Carzaniga 2021-12-03 16:05:51 +0100
  • 1c451f76ef (draw_frame) central frame-drawing function, using draw-event context. Antonio Carzaniga 2021-12-03 16:00:36 +0100
  • 3d6751cd15 (spaceship_init_state) larger, more visible spaceship (default radius). Antonio Carzaniga 2021-12-03 15:59:29 +0100
  • b3bb1666fa (draw_gravity_vector) saving/restoring cairo context, for isolation. Antonio Carzaniga 2021-12-03 15:58:36 +0100
  • 896470f7bf slight amplification of thrust control. Antonio Carzaniga 2021-12-03 00:32:16 +0100
  • b2e760a749 added spaceship, with basic direction and thrust control. Antonio Carzaniga 2021-12-03 00:29:18 +0100
  • dfd7ca908b gravity control through scroll movements Antonio Carzaniga 2021-12-01 20:28:41 +0100
  • 87db81dcfe modularization of c_index, basic balls data. Antonio Carzaniga 2021-12-01 20:18:19 +0100
  • fb00e29a0d using draw signals. Antonio Carzaniga 2021-06-13 17:38:07 +0200
  • b7b39e4034 improved timing and load statistics Antonio Carzaniga 2021-06-08 21:24:55 +0200
  • 6d3fea4443 slight improvement in shaded pattern Antonio Carzaniga 2021-06-08 21:00:31 +0200
  • 5ba97e9edf shaded ball pattern. Antonio Carzaniga 2021-06-07 13:38:13 +0200
  • d033118653 working gtk-3.0 version Antonio Carzaniga 2021-06-07 12:03:55 +0200
  • 3309523725 face objects and cache; port to gtk-3.0. Antonio Carzaniga 2021-01-12 15:55:25 +0100
  • 68a33722c8 removed random colors from rotation faces. Antonio Carzaniga 2021-01-09 20:33:40 +0100
  • 6b59a065e4 added face rotation command-line switch. Antonio Carzaniga 2021-01-03 13:05:23 +0100
  • 76bb057e6c basic, independent, constant-speed rotation. Antonio Carzaniga 2019-12-18 21:18:21 +0100
  • 300e71cbde fixed typo in error message. Antonio Carzaniga 2019-12-05 16:39:55 +0100
  • a0fa9c4925 using canvas and local cairo context. Antonio Carzaniga 2019-12-05 16:34:31 +0100
  • 1fb6d9d94d typo in usage message. Antonio Carzaniga 2019-12-01 22:06:31 +0100
  • 30f48a0114 added stats sampling count option (stats=C). Antonio Carzaniga 2019-08-21 12:14:25 +0200
  • 90f9766a87 other minor simplifications. Antonio Carzaniga 2019-08-21 10:26:58 +0200
  • 576139b448 minor simplifications in c_index_insert. Antonio Carzaniga 2019-08-20 17:23:54 +0200
  • 956e652827 added rectangle binary search tree as collision index. Antonio Carzaniga 2019-08-20 16:15:29 +0200
  • a8e616a608 separate state-update function for profiling. Antonio Carzaniga 2019-08-19 10:45:55 +0200
  • a71096699b minor fix in usage message. Antonio Carzaniga 2019-08-11 18:13:07 +0200
  • 430410e415 added missing face opt in usage message. Antonio Carzaniga 2019-08-10 11:13:26 +0200
  • de93a620c1 added option to disable ball-ball collisions. Antonio Carzaniga 2019-08-10 11:11:14 +0200