pocket_lucho escribió:Cuando acabe ya sabeis que voy a ahcer unos tutos 'pa cagalse'
theelf escribió:Buenas a todos. Estoy programando un rpg, con sprites de 32x32, y colicion entre sprites y tiles.
Alguien tiene echo algun codigo de la misma tematica?
Necesito ideas, pero no tengo mucho tiempo para sentarme a escribir codigo ahora mismo
Ostras, no te puedo ayudar en tema de programación pero si a crear un sistema de combate, experiencia y una historia corta, sin cosas raras ni muy complejas. También podría diseñar el mapeado etc.
Lo vas a hacer en formato cartucho o CD?
Si te metes en esto de cuanto va a ser en tiempo? 1H de juego 5H? 10 ya me parece una locura xD

theelf escribió:Buenas a todos. Estoy programando un rpg, con sprites de 32x32, y colicion entre sprites y tiles.
Alguien tiene echo algun codigo de la misma tematica?
Necesito ideas, pero no tengo mucho tiempo para sentarme a escribir codigo ahora mismo
theelf escribió:
Tengo echo el engine de colisiones, y de pelea, pero no termina de convencerme, por eso busco ideas en cuanto a codigo
Si tuviera mas tiempo, haria el codigo una y otra vez hasta estar contento... pero no lo tengo .. jeje, por eso me gustaria ver ideas de otros!
Que te parece el planteamiento de este sistema de combate? xD
Me interesa mucho discutir rutinas de deteccion de colisiones, hace años cuando programaba para GB era el punto debil de mis juegos... usaba arrays de coordenadas pero era muy impreciso
).
pocket_lucho escribió:Buff, llevo unas semanas on fire pero aprovecho para comentar que en el retromadrid estará mi juego jugable para probar a quien asista
pocket_lucho escribió:Buff, llevo unas semanas on fire pero aprovecho para comentar que en el retromadrid estará mi juego jugable para probar a quien asista
pocket_lucho escribió:Estaré en el stand de los amigos de fasebonus/1985 alternativo of course!!
A este paso será everdrive aunque intentaré llevar un cartucho aunque sea hecho a mano, es que prefiero probarlo allñi con la gente, ver los bugs o sugerencias de la gente para asi meterlos en la rom final fabricada, ¿no os parece que es mejor asi?
)

FerJs escribió:-¿Cómo puedo establecer las colisiones de un sprite con un tile? estuve pensando en programar coordenadas x e y, que según una condicional puedan atravesarse o no, pero eso sería extremadamente tedioso de lograr en mapas grandes.
Como TheElf comentó antes, se puede usar un mapa de colisiones ¿Pero cómo puedo implementar eso?
FerJs escribió:Claro, claro. ¿Pero cómo defino que tile es atravesable y que tile no?
FerJs escribió:Claro, claro. ¿Pero cómo defino que tile es atravesable y que tile no?
genny4ever escribió:SEGA MEGADRIVE - THE VDP IN 16 PICS
Here is a documentation with a new writing style. Made of games screen-shots and some explainative sentences about the main VDP functions.
However, this is not enought to know how to use the VDP but... Very explicative for noobs (I hope). Au menu:
- Planes?Sprites?
- And what about PlaneW?
- HP/NP sprites, WTF?
- HP/NP planes, WTF? Big Sprites?
- Tile/Tile H Scrolling
- Pixel/Pixel H Scrolling 2Tiles/2Tiles V Scrolling
- Mix Pixel/Pixel H vs 2Tiles/2Tiles V scrolling?
- What about color palettes? What appen when I reload a palette?
- Content of VRAM?
- Sprites are made of tiles! Planes are made of tiles !
- Boost color tips 1 : Shadow/Highlight !
- Boost color tips 2 : Raster Effect !
Download this documentation



djcouchycouch escribió:...One thing I haven't been able to wrap my head around is how to make it so that I can scroll a background plane at different speeds. The effect I'm most interested in is how the background scrolls in Sonic The Hedgehog 1. The far off mountains, the waterfalls and the ocean scroll at different rates. And the ocean scrolls at the pixel level.Chilly Willy escribió:Set the horizontal scroll mode to per line, then the hscroll table has a scroll value for every line on the display. Then set different lines to different values to scroll them at different speeds.djcouchycouch escribió:I'm relying on SGDK since I'm not very familiar with the Genesis hardware, and there wasn't any obvious way (to me anyway) to set the scroll mode. But then I read that those settings are based on register values. SGDK doesn't seem to expose a function to set the scroll mode explicitly, but it does have a VPD_setReg() function. So I managed to find which register the scroll mode corresponds to, 0x0B, find the right value to set and call VDP_setReg() with them. Great!Chilly Willy escribió:There's a functon to set the hscroll value for a line:void VDP_setHorizontalScroll(u16 plan, u16 line, u16 value);
You tell it the plane (A or B), the line number, and the scroll value.djcouchycouch escribió:Yes, exactly. That's what I was using. But I didn't know how to enable the scrolling mode so it didn't do anything. But everything is working now.

FerJs escribió:Claro, claro. ¿Pero cómo defino que tile es atravesable y que tile no?
Abokys escribió:FerJs escribió:Claro, claro. ¿Pero cómo defino que tile es atravesable y que tile no?
Mirate este ejemplo (muy sencllo y tosco) sobre colisiones. Los gráficos son muy simples, pero sirven para ilustrar el ejemplo. Saludos!
__KURRY__ escribió:hola,buenas a todos,
he estado siguiendo este post desde que se creo,soy fan de la megadrive,y este fin de semana he tenido por fin tiempo de dedilarle un rato a probar los tutos y tal....y he de decir que...increible¡¡¡¡¡¡¡¡ no pense que fuese capaz de hacer algo,pero me están surgiendo unos problemillas(derivados de mi nulo conocimiento de programación) que seguro que para vosotros no lo son,jejeje al lio
if x>249 and x<4 y 400 them
x=x+1
movesprite personaje,x,y
end if
x++
esto me mueve el sprite entre las posiciones 250 y 400 pero.....como lo hago para que me vuelva por el mismo camino?
un saludo¡¡¡¡¡
jordigahan escribió:wow!!! parece como si alguien hubiera cogido el codigo que publicaste y lo hubiera mejorado algo!!!
Me parece que el binario en cuestión es éste.