Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Generer une image à partir d'un .txt

Featured Replies

Posté(e)

Bonjour, je me tourne vers vous car je souhaiterais génerer une image à partir d'un fichier .txt, je m'explique :

J'ai fait un petit jeu dans un autre language (Python) où la "map" est généré grace à un fichier .txt qui ressemble a quelque chose comme ca :

d.......m...........m....

..............................

..............................

m............m...........

......................m......

.........m..................

..........................a

Où "d" correspond au départ de mon personnage et "a" l'arrivée avec "m" des murs et "." le chemin où le personnage peux se déplacer.

Avec mon jeu en python je chargeais un png en fonction du .txt : si c'était un . je chargeais le png représentant la terre , si c'était un "m" je chargeais un png ressemblant à un mur ect ... Pour au final me faie une map.

Voila je souhaiterais donc faire quelque chose de semblable pour android.

Je suis ouvert à toutes solutions même si la méthode est complètement différente :-)

Merci.

Pour vous donner un meilleur exemple voici la base de mon jeu en python :

http://www.siteduzero.com/informatique/tutoriels/interface-graphique-pygame-pour-python/tp-dk-labyrinthe

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.