International audienceContext. Radiative transfer has a strong impact on the collapse and the fragmentation of prestellar dense cores. Aims: We present the radiation-hydrodynamics (RHD) solver we designed for the RAMSES code. The method is designed for astrophysical purposes, and in particular for protostellar collapse. Methods: We present the solver, using the co-moving frame to evaluate the radiative quantities. We use the popular flux-limited diffusion approximation under the grey approximation (one group of photons). The solver is based on the second-order Godunov scheme of RAMSES for its hyperbolic part and on an implicit scheme for the radiation diffusion and the coupling between radiation and matter. Results: We report in detail o...