I wanted to check how much ammunition was left before being able to shoot. That inevitably led on to how I was going to display that to the player.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUnlrbbAICFw5CbmPKimt1yrcIZUa9Jdpjb5t6eaPTjcQ8bqGi0rIz-84cWBm7Zu7tb3S3cMYinqPwP-Sh_10iUgq1RwND9RD_O9GPq24Q1KvjN7fb_p2zv8cGuycp8rvawqBy8sm6A4A/s320/ss20100628_125138.png)
The ammo display allows for different magazine capacities and changes colour when the total carried gets low.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyBf8Mnk-SC1xYdIbmTh_-7yS4u8FAT5CmaglHUfUcljtXwCindulFK-TtUeTkrgkVIV6s9ZUTtF-kHDFybIEI2jT1tGInNajoKgKfkYYo0G7ZRrDDtiU1lAdOb9aM3msKxsgg2UtQjlI/s320/ammo1.png)
I also wrote the code to be able to reload including the sound effects and to be able to change weapon. This sounds simple but remember it has to happen over a period of time not instantly so there is more to it than you initially think.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6z03xo7hp4DPpYhfERtMs8WuIDeivA-VaaAgdT_YQoJnMRLr-7bdigTGNAmafze4bIRpWuZipc0ImIKeQHFJODrTDj2MrFpLDQmkMv1fhROMv2KiV8DrTjOuUTu0O-bTxWbM_n0Jmc7U/s320/ammo2.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM8CxUcY7mqwX4R_QkcBPkk8B2J9YubYOs8niUTb0oBqT4xfjxDmQ56UDc6ilnN7tik8Y_MrjKLnCUcHmx4clGwmrbANXAehqEtbpHumIyk7273u29BZsqTpyRDI4vw_Rgcv8Ugi1FQkY/s320/ammo3.png)
I have some additional ideas that I intend to add to improve the display as the work progresses.
No comments:
Post a Comment