Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 June, 2013, 03:52:08 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
  home news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

  Show Posts
Pages: [1]
1  Calculator Community / [FR] Programmation Axe Parser / Re: [Axe] Problème lors de l'affichage d'une map simple on: 27 March, 2011, 21:38:15
kindermoumoute : oui c'est vrai. J'avais pas eu trop le temps pour tester les autres remarques que tu m'avais fait. J'ai répondu sur Ti Bank.

DJ_O : merci  Smiley
2  Calculator Community / [FR] Programmation Axe Parser / Re: [Axe] Problème lors de l'affichage d'une map simple on: 26 March, 2011, 15:35:22
Merci pour ta réponse.

Le problème venait de cette ligne là. J'ai mis X au lieu de V (erreur d'étourderie).
Par contre en multipliant W par 6 ça fonctionne.
3  Calculator Community / [FR] Programmation Axe Parser / [Axe] Problème lors de l'affichage d'une map simple on: 21 March, 2011, 10:07:23
Bonjour, j'ai commencé à créer mon premier jeu, mais je rencontre déjà des problèmes.
Ma map est composé de 2 sprites différents (l'un tout blanc, l'autre tout noir) mais seul le premier sprite s'affiche, et partout sur l'écran (c'est ce que j'ai remarqué après quelques tests).
 
Voici le code complet du programme :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
:[000F09FE7FE64870]→Pic0AV

:[0000000000000000]→Pic0M1
:[FFFFFFFFFFFFFFFF]
:
:[000000111111]→GDB0M1
:[000000111111]
:[000000111111]
:[000000000000]
:[000000000000]
:[000000111111]
:[000000111111]
:[000000111111]
:
:0→X
:56→Y
:
:ClrDraw
:sub(MAP,GDB0M1,Pic0M1
:
:Repeat getKey(15)
:   sub(TRN,1,(Y<56),2
:   sub(TRN,4,(Y>0),‾2
:   
:   Pause 1
:   X+1→X
:   
:   sub(PTC,Pic0AV
:   DispGraph
:   sub(PTC,Pic0AV
:   Pause 100
:End
:
:Return
:
:
:Lbl TRN
:If getKey(r1) and r2
:   Y+r3→Y
:End
:Return
:
:Lbl PTC
:Pt-Change(X,Y,r1
:Return
:
:Lbl MAP
:For(W,0,7
:   For(V,0,5
:      {W*6+X+r1}→A
:      Pt-On(V*16,W*8,A/16*8+r2
:      Pt-On(V*16+8,W*8,A^16*8+r2
:   End
:End
:DispGraph
:Return
 

Je ne vois pas trop où est mon erreur.
Mais je pense qu'elle se situe dans la fonction MAP.

Merci d'avance.

PS : est-ce-que quelqu'un pourrait m'expliquer plus en détails les calculs qui sont faits pour afficher une map. Je n'ai pas trop compris sur le tutoriel du site du zéro (mais je remercie ces auteurs pour leur excellent travail Grin).
Pages: [1]
Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.17 seconds with 28 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.