alex_h

Members
  • Content Count

    608
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by alex_h

  1. Ha ha, I see Well yes, that part can be a real bitch, agreed
  2. What means do you use to create the level layouts? I found the easiest way for me was to use an old copy of flash I had lying around, use that to drag and drop images into place and then use a custom jsfl script to export all their positions and names as json. It worked really well, used it for loads of different games. I hooked up the script to a keyboard shortcut so it was really quick, like instantaneous.
  3. Is the deal that aside from a small initial up front payment you then get paid on a basis of how many plays your game gets? Like a form of rev share?
  4. Just a tip, if you make yourself sound desperate then you open yourself up to a stronger chance of exploitation. Employers may well offer you less money because they know you are likely to still accept.
  5. It's also very simple to model yourself with just a couple of vectors, one for intial ball speed on the x and y planes, and one for gravity which you add to the ball y speed each update cycle. You can then elaborate by modifying the speed vector according to ball mass, etc
  6. What happens if you try running the game in Canvas2D mode instead of WebGL? If the problem changes or goes away then you confirmed it is to do with webgl rendering. If it stays then you know you were barking up the wrong tree
  7. They are now temporarily reverting the change.... until October https://bugs.chromium.org/p/chromium/issues/detail?id=840866#c103
  8. alex_h

    Next step

    Hire whatever you need to complete the project you have taken on.
  9. I've found this 'Professional Photoshop Book' magazine series to be really good, just downloading a few editions onto an ipad and reading through the articles I learned tonnes of useful tips and techniques. https://issuu.com/nhantruong2/docs/the_professional_photoshop_book_-vo For the drawing style like the fox game graphics you linked to above you'd probably want to use Adobe Illustrator rather than photoshop though, so you could maybe give this magazine a try: https://issuu.com/futurepublishing/docs/cbz90_sampler
  10. It's not a question with a single simple answer as it depends on what hardware its running on
  11. You'd want to render the texture to another canvas and append that to the body. Or if you really have to use an image you could render the texture to an off screen canvas, then use canvas toDataUrl to get it into an image element https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL You assign the output of canvas toDataUrl as the image src
  12. What you are trying to do sounds very weird to me, but anyway, with width/height 100% that refers to 100% of the containing element. So as long as your parent div has fixed width and height then you shouldn't have a problem.
  13. If it is in the same page as your game then you can display it in front of the game canvas via css. You can show / hide via the display property, and place it in front of the canvas via position and z-depth properties.
  14. This one is good, uses flash in the browser though so won't work forever http://kvazars.com/littera/
  15. stick an iframe in front of the game canvas and load the HTML into that.
  16. Audio loading is an asynchronous process. So the error won't necessarily be thrown from the initial call to this.load.audio, it may be triggered later on. Hence try / catch not working here.
  17. I'm preparing assets for a reskin of a 2D game, and for one of the sprites I need to create the texture by rendering a 3D model and exporting to png. The model is in .fbx format with accompanying materials as .png. I need to create 9 cameras at various angles at a fixed radius around the model and render a png from each of them. Can anyone recommend what would be the simplest application to do this from? I have very limited experience with 3D software so I'm worried this is going to be a massive time sink for me. I had a brief look at Blender once before for something similar but I seem to remember I found it quite a steep learning curve so ended up abandoning the approach. I just need something that will be easy for me to figure out how to control my point of view within the 3D space, easy to correctly place the cameras, and then easy to choose render parameters. Any suggestions? Cheers!
  18. I use my own audio player that I wrote before Howler existed. But Howler should be fine to use, yeah.
  19. I can't think of a case where uncompressed audio would be required for web. If you mean in terms of memory it would depend on what devices you want to support. It usually ends up being a bit of trial and error, but I normally start to worry if my audio sprites get longer than a minute and a half or so. You'll know when its too long because the page will keep reloading automatically on iOS. Handy tip is to keep your files mono because that takes half as much memory as stereo once loaded.
  20. Not being able to play is more likely to be a result of the audio format than from using audio sprites. Also on Android there is the stock browser which didn't used to support web audio, which will have a big impact on audio experience for your users. I've always taken the approach of generating audio in two formats, .ogg and .m4a. Then load .ogg when its supported as the file size is smaller, otherwise use the .m4a. I put all the audio into as few audio sprites as possible, and never have had any complaints about it not working on Android, except for those cases where web audio was not supported by the browser, in which case I normally prepare a slimmed down audio sprite that will work better for HTML5 audio. Still the same two formats though.
  21. There are plenty of apps that already do this.
  22. Oh yeah, I didn't see your post about different response headers from different hosts. Do you see the same effect on those two hosts if you use other audio formats, ie .ogg and .m4a? If not then maybe avoiding the mp3 format is a good way to work around the issue? {Edit} ok I also just noticed Ozdy above says the same thing happened with .ogg too... doh!
  23. IE doesn't support web audio, it has to use HTML tag audio playback instead, hence not looping. https://caniuse.com/#feat=audio-api
  24. When you say 'change the texture of my sprite each frame in the gameloop' don't forget that you also need to consider what your desired frame rate is, and hence how long each frame should be displayed for in milliseconds. Eg, if your animation is meant to play at 25 frames per second, your milliseconds per frame is 1000 / 25, which makes 40. Within the update method of your animation sprite you need to monitor how many milliseconds have passed since the last change of texture, and only once that has reached the threshold of your required frame duration (40) should you then change to the next texture and reset your time counter (subtract 40 from it, not set to zero, otherwise it will drift).
  25. alex_h

    Audio Debugging

    A compressor could also be a good idea, it really depends on what the sound content is. If the waveform has a few peaks that are much higher than the others then using a compressor would be a good way to level those out, they could be potential causes of runtime pops and clicks. But I would still suggest doing so via using a wave editor like adobe audition to modify the source audio file, rather than Web audio processes at run time. You'll likely get better sounding results as well as avoid using up additional cpu cycles unnecessarily.