Previous 199869 Revisions Next

r22894 Saturday 18th May, 2013 at 12:47:04 UTC by David Haywood
stuntair - preliminary sprites
[src/mame/drivers]stuntair.c

trunk/src/mame/drivers/stuntair.c
r22893r22894
216216   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
217217   
218218   PORT_START("IN2")
219   PORT_DIPNAME( 0x01, 0x01, "IN2:0" )
220   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
221   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
219   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )
222220   PORT_DIPNAME( 0x02, 0x02, "IN2:1" )
223221   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
224222   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
r22893r22894
228226   PORT_DIPNAME( 0x08, 0x08, "IN2:3" )
229227   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
230228   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
231   PORT_DIPNAME( 0x10, 0x10, "IN2:4" )
232   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
233   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
234   PORT_DIPNAME( 0x20, 0x20, "IN2:5" )
235   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
236   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
237   PORT_DIPNAME( 0x40, 0x40, "IN2:6" )
238   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
239   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
240   PORT_DIPNAME( 0x80, 0x80, "IN2:7" )
241   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
242   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
229   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
230   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
231   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
232   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
243233
244234   PORT_START("IN3")
245235   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
r22893r22894
400390   m_fg_tilemap->draw(bitmap, cliprect, 0, TILEMAP_PIXEL_LAYER0);
401391   m_fg_tilemap->draw(bitmap, cliprect, 0, TILEMAP_PIXEL_LAYER1|TILEMAP_DRAW_OPAQUE);
402392
393   gfx_element *gfx = machine().gfx[2];
394
395   for (int i=0;i<0x200;i+=8)
396   {
397      int x = m_sprram[i+5];
398      int y = 240-m_sprram[i+0];
399     
400      drawgfx_transpen(bitmap,cliprect,gfx,2,0,0,0,x,y,0);
401   }
402
403403   return 0;
404404}
405405

Previous 199869 Revisions Next


© 1997-2024 The MAME Team