Posté le 22/01/2026 17:50
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
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.
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, (
merci d'avance, SLG4
moi même
Citer : Posté le 19/02/2026 18:57 | #
j'éspère qu'on va m'aider
moi même
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?
*****
*****
*****
*****
*****
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.)
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.
moi même
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
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.
moi même
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?
Citer : Posté le 20/02/2026 19:08 | #
no i dont have in the Str in the catalog.
moi même
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.
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
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)
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.
moi même
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)
moi même