Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Autres questions


Index du Forum » Autres questions » Je cherche un truc et j'ai besoin d'aide
Slg4 Hors ligne Membre Points: 157 Défis: 3 Message

Je cherche un truc et j'ai besoin d'aide

Posté le 22/01/2026 17:50

Salut (oui je poste beaucoup je sais) je cherche comment faire pour faire une verification d'une valeur dans une liste et je veux verifier si la valeur de
if List 1=(ma variable)
then (mon résultats ou action si les valeurs correspondent

voila c'est tout


Prgmprotogen Hors ligne Membre Points: 35 Défis: 0 Message

Citer : Posté le 07/02/2026 17:03 | #


Yeah, you need to initialize the list once before you can use it for storing save data, but after that you shouldn’t modify it so you don’t overwrite save data. I think what Lephe' suggested would be best, where you have separate options for New Game and Continue. When using this system, it’s important that you don’t try to define the dimensions or contents of the list right at the start; instead, you need wait until the user has chosen one of the options. If New Game gets selected, then the list is immediately set to the standard length your save data uses (hopefully after a confirmation that the user really wants to start a new game). If Continue is selected, then the program will check to ensure the list dimensions are the appropriate size before trying to load the save data.
The only problem with this is that the program will crash if there’s no save data to load… You might be able to prevent this by naming your List with a string, as Dark Storm shows.
Slg4 Hors ligne Membre Points: 157 Défis: 3 Message

Citer : Posté le 18/02/2026 11:40 | #


a est maintenant je cherche aussi a faire une map pour le jeu à-propos duquel j'avais déjà poser des questions avant, maintenant je cherhce a faire une map en ASCI sur laquelle un bonhomme se depplace et aussi j'arrive pas a faire en srte que quand le bonhomme passe sur un buisson, (
*
) il n'efface pas le buissons. pour le reste je me débrouille mais je cherche a faire sa en affichant la map rapidement et sans faire ramer la calto.
merci d'avance, SLG4
qui ne veut rien faire trouve une excuse ou sinon peut se taire.
moi même
Slg4 Hors ligne Membre Points: 157 Défis: 3 Message

Citer : Posté le 19/02/2026 18:57 | #


j'éspère qu'on va m'aider
qui ne veut rien faire trouve une excuse ou sinon peut se taire.
moi même
Prgmprotogen Hors ligne Membre Points: 35 Défis: 0 Message

Citer : Posté le 19/02/2026 18:58 | #


Would it be okay if the player is completely displayed over the bush while he's standing in the bush?
Example
Cliquer pour enrouler
For example, assuming a map like this:
*****
*****
*****
*****
*****

With a player at position 1, 1 (assuming 0, 0 is the top-leftmost position on the map), would the map look like this? The player is represented with the letter "P".
*****
*P***
*****
*****
*****


If so, then I think what you need to do is when the player moves, check the map data at the starting position (before the player has actually changed X or Y positions) and render the tile just there. Then change the player's X or Y position according to the movement direction, and render the player at that new position.
(It's important that you don't render the entire map again after movement, or else it will slow everything down by a lot. This technique re-renders just what is necessary.)
Slg4 Hors ligne Membre Points: 157 Défis: 3 Message

Citer : Posté le 19/02/2026 19:05 | #


i want a map like using all the screen (but not with bush everywhere) and when the player go on a bush, yea your idea of the layer display the bush is great, but i dont know how to locate the map fastly.
qui ne veut rien faire trouve une excuse ou sinon peut se taire.
moi même
Prgmprotogen Hors ligne Membre Points: 35 Défis: 0 Message

Citer : Posté le 19/02/2026 20:05 | #


Are you using the Locate command to draw the map? If so, there might be a way to temporarily combine the individual letters (ASCII characters) that make up the map into strings, and render the map as a bunch of rows of strings. It'll add more processing time, but less rendering time (which tends to take up more time overall).
I'm not sure exactly how to do this in Casio BASIC, but if there are any string operators for appending strings to each other, it shouldn't be too hard
Slg4 Hors ligne Membre Points: 157 Défis: 3 Message

Citer : Posté le 20/02/2026 08:53 | #


i have a old casio G35+ so i dont have the Str command to stock some ASCII character.
qui ne veut rien faire trouve une excuse ou sinon peut se taire.
moi même
Prgmprotogen Hors ligne Membre Points: 35 Défis: 0 Message

Citer : Posté le 20/02/2026 19:06 | #


Darn
Perhaps you could try caching the map in Picture memory? Only problem with that is that you can't store very much of the map with that, and I don't think Locate renders to the graph (which StoPict pulls from). But I think there is a separate Text command that renders smaller text to the graph, so you could fit more of the map per screen/Picture.
Were you saying your calculator doesn't have any Str commands, not even in the Catalog? Or it just doesn't have the ones you would need for appending Strings together?
Slg4 Hors ligne Membre Points: 157 Défis: 3 Message

Citer : Posté le 20/02/2026 19:08 | #


no i dont have in the Str in the catalog.
qui ne veut rien faire trouve une excuse ou sinon peut se taire.
moi même
Prgmprotogen Hors ligne Membre Points: 35 Défis: 0 Message

Citer : Posté le 20/02/2026 19:13 | #


Huh, interesting. How are you storing the map data (if you've set that up)? I'd say the map-drawing method to use is largely dependent on that.
Irakleio Hors ligne Membre Points: 121 Défis: 0 Message

Citer : Posté le 20/02/2026 21:26 | #


An easy way to store map is to use a matrix. For example, if you want to use locate to draw your map, create a 7*21 matrix with all your map data.

You choose how to encode your map. For example : 0=empty, 1 = bush, 2 = wall, 3 = apple, and so on.

It could look like

[[2,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,2][2,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,2]...(+5 rows)] → Mat M


Then, when you move around, just query values in matrix and check if you can go one step on the right, on the left, etc, depending on the value of the matrix here. Be sure to check bounds (do not query Mat M[0,2] as it would raise an error)
Slg4 Hors ligne Membre Points: 157 Défis: 3 Message

Citer : Posté le 21/02/2026 08:29 | #


ok its a great idea but i dont know how to use matrice. i will read the tutorial of basic casio pragrammation.
qui ne veut rien faire trouve une excuse ou sinon peut se taire.
moi même
Slg4 Hors ligne Membre Points: 157 Défis: 3 Message

Citer : Posté le 21/02/2026 14:26 | #


pfyuuu j'ai hate d'avoir ma G90+E elle arrive bientot et je vais faire des jeux de dingue (en théorie)
qui ne veut rien faire trouve une excuse ou sinon peut se taire.
moi même

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
captcha
Rafraîchissez la page si vous souhaitez obtenir un nouveau CAPTCHA.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2026 | Il y a 177 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd