|
Post by vetea on Jan 29, 2015 17:13:51 GMT -5
Hi all, Today I try to find a solution for the static hitbox of the map. On a PC, I use a 2D array MAP( sizemapx, sizemapy ) but it's expensive with memory and the MD has only 64K. So, with a ( 450, 325 ) map size with 50+ statics objects, who can I fix the static hitbox with all sprite in game ?? Thanks for help.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 29, 2015 23:07:40 GMT -5
What's that map array for? Are your maps really that big (from the looks of the videos, it's not that large).
|
|
|
Post by vetea on Jan 30, 2015 2:07:46 GMT -5
I use a map array like this : If MapCollision ( Xsprite, Ysprite ) = Type of Collision Then Collision. Type of collision = depend nature of terrain ( solid, water, ... ) It's a very cool and quick solution but expensive in RAM. With a MD and a large map, RAM is overflow ! So I have to find another solution in Basic Bex ...
|
|
|
Post by vetea on Jan 30, 2015 4:55:27 GMT -5
Hi all, I resolve the problem !! I have to re-scale the map and the sprite coordinate ! It cost only 20 KO memory ! That's OK ! The map array is ( 100, 100 ) ! Now I have a decalage problem with coordinate of map plan, depend with the scrolling. Hehe. Sure I find a new solution. See you.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 30, 2015 10:20:48 GMT -5
If they're static coordinate (ie, not changing), you could use dataint statements and use a 0 for walkable tiles and a 1 for an object that stops you (fence, water, structure, etc), and read the data by offsetting the reload statement: Reload testmap, 3 Readint z Print z
Testmap: Dataint 1,2,3,4,5
That would save you from using arrays, and you can do a quick algorithm to determine what the offset for the reload command needs to be to find the value It may not be the best way, but would save memory by not using an array.
|
|
|
Post by vetea on Jan 30, 2015 18:04:08 GMT -5
Thanks for your help ! Today I work for my Tiles tool. Now I can use Tiles with drawtiles and Drawtilesinc ! So I can create little map with Data. I let the hitbox for now ... I have a question : is transparency effective with Tiles ? ( with sprite it's OK. ) See you.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 30, 2015 19:39:45 GMT -5
Transparency works the same way for both tiles and sprites Just remember the first color of palette 0 sets the background color, otherwise it (and the first color of every palette) is the transparent pixel. Hope that helps!
|
|
|
Post by vetea on Jan 31, 2015 13:57:06 GMT -5
Hi all ! Tonight I send you a nice demoscene with 50+ sprites gestion with scrolling !! Thx to Elusive with his tips. This Bex is really impressive. See you !
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 31, 2015 15:00:43 GMT -5
Hi all ! Tonight I send you a nice demoscene with 50+ sprites gestion with scrolling !! Thx to Elusive with his tips. This Bex is really impressive. See you ! Fantastic!! Just keep the sprite count in mind, as you can only have 80 sprites displayed at once. Any more than that, and you'll have to start flickering your sprites to display more than that. Keep up the excellent work! I'm looking forward to this little gem quite a bit
|
|
|
Post by vetea on Feb 2, 2015 1:40:20 GMT -5
New version coming soon !!
|
|
|
Post by vetea on Feb 2, 2015 16:55:46 GMT -5
NEW DEMO AVAILABLE !!Here is it !!! The First version of Papi Commando MD Edition !! After a long week of development and Bex Works, I can share you this first game. Use the PAD to move and A to shoot. You have to kill all of the officiers of the stage and avoid them. Beware of yours munitions ! Sometimes a Bonus "BombJack" help you in game to give you some cool Bonus ! The Rom :Papi Commando MD ROMHave fun !!
|
|
|
Post by fl on Feb 2, 2015 17:58:48 GMT -5
congratulations for this excellent demo, in just some weeks this man is a friend of me, and a very good coder ! it's sure that this game will be great !
|
|
|
Post by vetea on Feb 2, 2015 18:15:50 GMT -5
Thx my Barbarian's Friend !!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 3, 2015 10:23:49 GMT -5
You 2 know each other outside of the forums? That's awesome Barbarian is such a great port, fl What you've done with Papi Commando, so far vetea, is fantastic! I can't wait to play the finished version of it, as it looks insanely fun. Keep up the excellent work!
|
|
|
Post by vetea on Feb 4, 2015 2:19:34 GMT -5
Thx Elusive, with your help I've could make some nice and quick progress !! F.L is a friend of mine and we're living not so far from each other. With bonaf and F.L, they help me to begin the Bex's world. From now, I do some code optimisation and the ennemies can shoot by a very simple IA. I've started the static hitbox gestion with ground. I've some decalage problem between background and scrolling, but I think it's in a good way ! Also, F.L send me a Pcm routine to play Raw sound for a better quality. I try to use it with no much cycles CPU. See you.
|
|