Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Blue Raven

Pages: [1] 2 3 ... 6
1
J'ai traduit tout ça et je l'ai ajouté à mon premier post. :)

2
Hey Xeda, voici une version corrigée de ton post. Si tu veux de l'aide, tu peux poster directement en anglais, je pourrais traduire. :)

Grammer
(un tuto en français)

   Bonjour, je m'appelle Zeda et j'ai créé le langage de programmation "Grammer." Tout d'abord, je précise que je ne parle pas français, donc la documentation risque d'être mauvaise (et la grammaire aussi). Grammer est donc un langage pour les TI-83+/84+/SE. Il y a une version en programme compilé ici, mais l'application a plus de fonctions et est plus rapide.

Qu'est-ce que Grammer ? Grammer est une langage interprété.
Comment faire un programme? en utilisant l'éditeur de TI-BASIC, sans oublier ce code sur la première ligne :

Code: [Select]
.0:
J'ajoute aussi le token Return :
   
Code: [Select]
.0:Return
Comment arrêter un programme ? En utilisant le token Stop.

Créer un premier programme

   Je voudrais commencer le tuto avec un exemple. Vous pouvez "parler" avec le programme grâce aux fonctions et aux tokens, mais la programme peut vous "parler" aussi. Donc, il y a des fonctions pour les calcul et les entrées-sortie. Par exemple :

Code: [Select]
.0:Return
.LOOP            ;un label
getKey→A         ;la touche pressée est enregistrée dans la variable A
If A=0           ;Vérifie si A vaut zéro
Goto Lbl "LOOP   ;va au le label "LOOP" s'il n'y a pas de touche pressée
ClrDraw          ;efface l'écran
Text('0,0,A      ;écrit le nombre contenu dans la variable A à l'écran
DispGraph        ;affiche l'écran
Stop             ;Arrête le programme

Le code ci-dessus va afficher la touche pressée, mais il y a de meilleures façons de le faire que je montrerais plus tard. Grammer utilise des entiers compris entre 0 et 65535 (comme en Axe). Vous pouvez également stocker ces nombres dans les variables A, B, C, etc, ainsi que dans A', B', C', etc. Le code getKey→A stocke la valeur retournée par getKey dans A.
Le token Text( sert à afficher du texte et des nombres. La syntaxe est Text(Y, X, <<valeur>>) avec Y un nombre entre 0 et 58 et X entre 0 et 23 (les caractères font 4 pixels de large). Le texte est automatiquement passé à la ligne si nécessaire. Pour afficher un nombre, il faut utiliser Text('. Pour afficher du texte, on peut faire quelque chose comme cela :

Code: [Select]
.0:Return
ClrDraw
"Hello!→A
Text(0,0,A
DispGraph
Stop

Malgré cela, A ne contient pas la chaîne de caractères ! A contient un pointeur sur la chaîne. Un pointeur contient un nombre qui pointe sur un endroit de la RAM. Voici un autre exemple, plus compliqué, utilisant des pointeurs :

Code: [Select]
.0:Return
Send(1,"ETest→Z      ;Crée un programme en BASIC et en stocke l'adresse dans Z
int(Z,49             ;Cela écrit un octet contenant 49 à l'endroit de la mémoire pointé par Z
Stop

Comme Z pointe sur le programme en BASIC, 49 (qui correspond à "1") est écrit dans le premier octet du programme. Allez-y, ouvrez le programme et vous verrez qu'il y a écrit "1". :)

3
Cool ! Je sens que je vais participer !

4
TI Z80 / Re: 2D Cellular Automata
« on: February 11, 2012, 09:19:36 am »
I'll try that ! I'm a big fan of the Game of Life !
For the built-in patterns, you could add puffers, spaceships...
Here are nice ones : http://home.interserv.com/~mniemiec/sship.htm

5
Computer Programming / Re: Best language for beginners?
« on: February 10, 2012, 09:56:41 am »
Don't you have to pay for VB?
Nope, the basic version of the IDE is free, and it's really enough for an non-professional.

6
TI Z80 / Re: 2D Cellular Automata
« on: February 07, 2012, 12:47:16 pm »
Woah ! Looks awesome ! What rules do you use to make the labyrinth ? :o

7
Miscellaneous / Re: Post your desktop
« on: February 05, 2012, 02:07:29 pm »
How do you get your desktop to look like that?

Rainmeter
! It's just awesome !

8
TI Z80 / Re: 2-3 person project?
« on: January 30, 2012, 10:11:57 am »
Yeah, I think the number and position off all ennemies in a level should be fixed. But if the other don't agree...

9
TI Z80 / Re: 2-3 person project?
« on: January 29, 2012, 07:51:09 am »
What exact sprites do you need, Parser? :D
well, as far as I know, I just need platform tiles, background tiles (stuff like trees, clouds, etc.), and any other stuff that you guys can think of.

also, I do NOT need to include enemy/player tiles, right?

Well, the positions of all ennemies must be stored somewhere...

10
TI Z80 / Re: TI-Studio: An Axe music making program
« on: January 28, 2012, 02:43:56 pm »
Awesome ! Maybe I'll do Popcorn, it could sounds very nice...

11
TI Z80 / Re: 2-3 person project?
« on: January 28, 2012, 07:45:06 am »
for .txt to .8xp conveting stuff, sourcecoder from Cemetech do the excellent job. Wabbitemu is a good emulator to use and you can get free TI-83+ rom from ti website (TI flash debugger I think). Download it and change TI83Plus.clc (I think) to TI83Plus.rom and you have the rom file. :D
Cool ! Now I can work on computer ! It would be faster. And, any news of parser or saintrunner ?

12
TI Z80 / Re: 2-3 person project?
« on: January 27, 2012, 08:17:35 am »
Ok, here is the movement engine, but it's only a draft. But since I have no working calc anymore...
Maybe it could help. I hope my calc will be fixed in a few days so I can work on it again.
Btw great work parser padwan !


\0/ what happened to the calc 0.o

After a Ram Cleared, some pixels turned black and remain black whatever I try. It's like if there were doodles on the screen and it's very annoying. :S
But is there any .txt to .8xp conveter so I could work on computer ? And compile with an emulator ?

13
Miscellaneous / Re: What is your avatar?
« on: January 27, 2012, 08:13:43 am »
My avatar is...well...a guy who shoot at space invaders. :P

Lol nice in this pic you kinda look like someone who used to work at my job for a while. And you don't have that t-shirt with THE on it where here it was enough to make us lose THE GAME. :P

Looking at my own avatar keeps reminding me I really need to get back into music eventually. I just have been too exhausted due to more work a few weeks ago and other things I had to do. X.x
Yeah, your latest album was awesome ! Keep going !

14
Miscellaneous / Re: Post your desktop
« on: January 26, 2012, 11:20:59 am »

15
Miscellaneous / Re: Post your desktop
« on: January 25, 2012, 04:40:36 pm »
Here is my current desktop :

Spoiler For Spoiler:

Pages: [1] 2 3 ... 6