Jump to content

  • Log In with Google      Sign In   
  • Create Account


PeterStock

Member Since 17 Oct 2005
Offline Last Active Jun 21 2014 11:37 AM
-----

Posts I've Made

In Topic: Bell's theorem: simulating spooky action at distance of Quantum Mechanics

14 June 2014 - 03:56 AM

I didn't read all the posts and don't know about quantum mechanics, but you know that the numbers returned by rand() aren't very random, right? You'd probably want a better pseudorandom generator, or maybe a (physical) random source.


In Topic: fractal result by accident

06 February 2014 - 06:59 AM

I am impressed with the patience shown here. It's a Moire pattern.


In Topic: How to stick on slopes?

26 November 2013 - 12:35 PM

I had the same problem and my approach was to suck the character down to the ground when it was touching the ground last frame and <= [some limit] distance from the ground this frame. I set [some limit] based on the max x velocity and max slope of the ground.


In Topic: Embedding data into an executable.

18 October 2013 - 12:01 PM

Resource scripts are just text files, and the ones I've used are really simple - just an integer ID and a filename of the data to embed.

 

The 'custom build step' tab in the project options is probably the place to do the compile-time generation.


In Topic: Embedding data into an executable.

17 October 2013 - 02:48 AM

This doesn't really directly answer your question, since it's not using VS itself, but MinGW comes with a command line resource compiler. You could generate the data the resource script references at compile time, or the resource script itself via a makefile. But its output is in GCC's object file format which I'd guess is not compatible with the VS linker.

 

But Surely VS2012 express has a resource compiler even if it doesn't have an editor? In my old version of VS, it's called RC.exe. The IDE itself calls this and CL.exe to actually do the build.

 


PARTNERS