tuxDB - linux gaming aggregate
TUXDB - LINUX GAMING AGGREGATE
 NEWS TOP_PLAYED GAMES ITCH.IO CALENDAR CHAT WINE SteamDeck
 STREAMERS CREATORS CROWDFUNDING DEALS WEBSITES ABOUT
 PODCASTS REDDIT 

 

SUPPORT TUXDB ON KO-FI

MENU

ON SALE

New Twitch streamer aggregation implemented (#FuckTwitch) due to Twitch's API issues (more info on my Discord )


https://alecsis.itch.io/gravity-playground


Chill in the void. Do you like physics ? collisions ? particles ? astronomy ? This game has been coded for you !

Hints to put objetcs in orbit :
- first : know that bodies are more attracted if they have a big mass (eq. radius). That means that a big body won't attract that much a too little body.
- second : you can set a good circular orbit by directing it tangentially (not toward the object, not toward the opposite direction)
- third : 3 (or more) bodies are considered unstable. If the system is little then bodies won't stay in orbit a long time. A stable system involves long distances and high masses.

Stars are light compared to their size. Black holes are massive.

How to play :

- left click : spawn a planet where the cursor is located (beware you can wait before you release the button to make the planet bigger; also you can drag your mouse to give a velocity towards the cursor)
- right click : follow the targeted planet (or unfollow)
- mouse wheel / scroll : zoom and dezoom
- Buttons 1-2-3  : select between Planet, Star and Blackhole
- Escape : Quit

What is the goal ?

This is a sandbox, enjoy as long as you can. For now it doesn't have a lot of features, but I won't stop bringing new possibilities !


If you like my work, you can follow my daily activities on twitter : https://twitter.com/Alecsi_


------- INFORMATIONS COMPLEMENTAIRES -----

Elève de Gamecodeur depuis : février 2017

Langage et framework utilisés : Lua + Löve2D

Code et graphismes par Alecsis

Temps passé : 10 jours (le soir, mais surtout pendant les pauses entre les cours).

Contrainte du thème : 

    Très simple car aucun asset à faire. Je ne voulais pas manipuler les canvas, j'ai repris l'idée très sympatique de David avec ses planètes (dont je me suis empréssé de trouver l'implémentation).

Postmortem : 

   Je n'avais aucune idée de vers où je m'avançais. J'aime bien l'astronomie alors j'ai décidé d'implémenter la loi d'attraction de Newton (F = G*m1*m2/d² pour les connaisseurs) et de jouer avec des planètes. J'ai avancé selon les avis des gens en cours avec moi, implémentant ce qu'il manquait selon eux. Je suis satisfait du résultat et du chemin parcouru. 
   Par rapport au langage, j'ai fait d'énormes progrès au niveau de la structuration (pour les précédents jeux, tout était codé sur un seul fichier) : j'ai appris à diviser en modules et à passer les bons arguments, ce qui rend mon code beaucoup plus propre. Cette jam m'a beaucoup apporté à ce niveau et j'en suis fier !

Have fun!