Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : CMM2: V5.05.03 Bug Reports
Page 4 of 4 | |||||
Author | Message | ||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 3807 |
BUG: something wrong with CMM1 sprite compatibility ... unless I'm just doing it wrong. Extract "lunar.spr" from the 'Lander.zip' file attached to this page of Fruit Of The Shed. Run this: Option Explicit On Option Default Integer Option Legacy On Mode 5 Cls Sprite Close All Sprite Load "lunar.spr" Dim i For i = 1 To 18 Print i; " "; Sprite(H, i); " "; Sprite(W, i) Next i Current output: 1 0 0 2 -1 -1 3 -1 -1 4 -1 -1 5 -1 -1 6 -1 -1 7 -1 -1 8 -1 -1 9 -1 -1 10 -1 -1 11 -1 -1 12 -1 -1 13 -1 -1 14 -1 -1 15 -1 -1 16 -1 -1 17 -1 -1 18 -1 -1 Expected output: 1 16 16 2 16 16 3 16 16 4 16 16 5 16 16 6 16 16 7 16 16 8 16 16 9 16 16 10 16 16 11 16 16 12 16 16 13 16 16 14 16 16 15 16 16 16 16 16 17 16 16 18 16 16 Note that I don't think the problem is with the Sprite() function, but with the Sprite Load command. Regards, Tom Edited 2020-07-07 05:32 by thwill Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8516 |
CMM2 doesn't currently support comments in sprite files |
||||
Page 4 of 4 |
Print this page |