|
Search Results
|
| Post
[desc]
|
Author |
Forum |
Replies |
Views |
Posted |
| |
|
Thread: como se puede crear un disparo
Post: RE: como se puede crear un disparo
| Tu personaje se mueve por la pantalla al pulsar las teclas, pero el sprite no cambia ya que no se lo indicas. Puedes hacer animación de dos maneras:
Manual: ejecutando progresivamente Sprite.set_pic... |
|
megamarc |
Soporte
|
11 |
31,567 |
03-26-2020, 03:10 AM |
| |
|
Thread: como se puede crear un disparo
Post: RE: como se puede crear un disparo
| Hola!
Eso de compartir el proyecto completo es perfecto para poder probarlo, gracias
Te adjunto una versión modificada con lo que pretendes conseguir. Te recomiendo algún programa visor de difer... |
|
megamarc |
Soporte
|
11 |
31,567 |
03-26-2020, 07:12 PM |
| |
|
Thread: como se puede crear un disparo
Post: RE: como se puede crear un disparo
| Veo que has implementado el autodisparo tú solo, perfecto :cool:
La función isinstance() devuelve si el objeto pasado en el primer parámetro pertenece a la clase pasada en el segundo parámetro:
... |
|
megamarc |
Soporte
|
11 |
31,567 |
03-27-2020, 01:42 AM |
| |
|
Thread: como se puede crear un disparo
Post: RE: como se puede crear un disparo
| No es terreno pantanoso, es algo que todo juego 2D debe implementar, pero a la vez es sencillo y lo puedes reutilizar en cualquier juego tal cual.
Por cada actor, tienes que mantener como propiedad... |
|
megamarc |
Soporte
|
11 |
31,567 |
03-27-2020, 06:07 AM |
| |
|
Thread: como se puede crear un disparo
Post: RE: como se puede crear un disparo
| Dentro del constructor __init__(), por ejemplo de Jugador, puedes hacer lo siguiente:
Code:
--
info = tilengine.SpriteInfo()
imagen_Jugador.get_sprite_info(self.grafico, info)
self.ancho = info.... |
|
megamarc |
Soporte
|
11 |
31,567 |
03-28-2020, 01:36 AM |
| |
|
Thread: Compile error when building Tilengine
Post: RE: Compile error when building Tilengine
| For a small donation you can download the required dependencies from itch.io, along prebuilt binaries:
https://megamarc.itch.io/tilengine
The base GitHub project doesn't hold dependencies or prebu... |
|
megamarc |
Support
|
18 |
37,874 |
12-16-2020, 08:31 AM |
| |
|
Thread: Compile error when building Tilengine
Post: RE: Compile error when building Tilengine
| Hi,
Those errors are from libpng complaining about not finding zlib implementation. Putting zlib headers is one part of the solution, but there must be the actual library with zlib.lib or similar nam... |
|
megamarc |
Support
|
18 |
37,874 |
12-17-2020, 01:08 AM |
| |
|
Thread: Compile error when building Tilengine
Post: RE: Compile error when building Tilengine
|
System64 Wrote: (12-17-2020, 01:50 AM)
--
You have to download the right version of Visual Studio
--
Not necessarily. This happens whenever you open a project with a newer version of VS than the on... |
|
megamarc |
Support
|
18 |
37,874 |
12-17-2020, 02:36 AM |
| |
|
Thread: Compile error when building Tilengine
Post: RE: Compile error when building Tilengine
| Hi,
Seems that assets path relative to the executable is mismatched. By default tilengine loads assets in the same directory as the executable. If they're on another place, you use TLN_SetLoadPath() ... |
|
megamarc |
Support
|
18 |
37,874 |
12-17-2020, 07:18 AM |
| |
|
Thread: Compile error when building Tilengine
Post: RE: Compile error when building Tilengine
| Oh I understand, that test.c you found inside the /src directory is designed to validate automatic build status in Travis.ci when pushing to GitHub. It does several illegal operations in purpose, as k... |
|
megamarc |
Support
|
18 |
37,874 |
12-17-2020, 08:13 AM |
| |
|
Thread: Compile error when building Tilengine
Post: RE: Compile error when building Tilengine
| Yeah, you're right. The samples.sln VS solution and related projects are heaviliy outdated. They're based on an old VS2005 branch that had different directory structure. As I always use GNU makefiles ... |
|
megamarc |
Support
|
18 |
37,874 |
12-17-2020, 08:50 AM |
| |
|
Thread: Completed project restructure
Post: RE: Completed project restructure
| Hi Richard,
The two languages that survived are the ones I'm maintaining myself, so they aren't going to be abandonded. I've split them to have more flexibility and get rid of unsupported features.... |
|
megamarc |
News & Announcements
|
3 |
12,781 |
11-07-2018, 05:03 AM |
| |
|
Thread: Creating Executables for Python Game
Post: RE: Creating Executables for Python Game
| This is a purely Python-related question so I can't give much advice here. Maybe you're looking for python wheels (https://pythonwheels.com/), the standard way to distribute python packages with prebu... |
|
megamarc |
Support
|
2 |
8,490 |
12-31-2019, 12:17 AM |
| |
|
Thread: CRT and set FPS bugs
Post: RE: CRT and set FPS bugs
| Hi!
I've just returned from holidays and seen your post. Let me check it and answer soon.
The CRT issue happens when the front layer is scrolling, or just standing still?
I may need the "elis... |
|
megamarc |
Support
|
3 |
5,915 |
04-02-2024, 04:20 AM |
| |
|
Thread: CRT and set FPS bugs
Post: RE: CRT and set FPS bugs
| Hi,
I've found the explanation for both issues:
CRT filter
The problem here is that the background bitmap is smaller than the framebuffer. When thete's no background bitmap, each frame is cle... |
|
megamarc |
Support
|
3 |
5,915 |
04-04-2024, 03:18 AM |
| |
|
Thread: CsTilengine for version 2.9.5
Post: RE: CsTilengine for version 2.9.5
| I agree. One main reason for using direct 1:1 bindings is reuse of documentation and existing knowledge of the orifinal API. With this model there is a single API for all languages, that makes it stra... |
|
megamarc |
Presentations
|
6 |
18,176 |
04-09-2022, 05:11 PM |
| |
|
Thread: CsTilengine: problema con usar tilemap propios
Post: RE: CsTilengine: problema con usar tilemap propios
| Hola David!
Para poder ver el problema necesitaría que colgaras aquí tus assets y el código fuente que intenta visualizarlos, ya que sin verlos no puedo saber la causa del problema.
En cuanto al t... |
|
megamarc |
Soporte
|
3 |
11,981 |
06-20-2019, 02:41 AM |
| |
|
Thread: CsTilengine: problema con usar tilemap propios
Post: RE: CsTilengine: problema con usar tilemap propios
| Pues no sé que debía pasar con la versión anterior que te daba problemas, el cargador de tmx/tsx lo escribí en 2014 sobre la versión 0.10 creo que era. Quizás desd eentoces haya añadido algo al cargad... |
|
megamarc |
Soporte
|
3 |
11,981 |
06-23-2019, 04:38 PM |
| |
|
Thread: Debate: lenguajes e idiomas
Post: RE: Debate: lenguajes e idiomas
| Hola, mis propias opiniones al respecto:
Lenguajes de programación:
C es un lenguaje de sistemas de bajo nivel. Es universal, sirve para cualquier cosa en cualquier plataforma, pero no es el más ... |
|
megamarc |
Soporte
|
9 |
29,646 |
10-27-2018, 06:38 AM |
| |
|
Thread: Debate: lenguajes e idiomas
Post: RE: Debate: lenguajes e idiomas
| Hola, esta vez mis reflexiones sobre...
Rendimiento
Se ven comentarios acerca de que los lenguaje interpretados o gestionados son peores que los nativos porque tienen peor rendimiento, incluso aun... |
|
megamarc |
Soporte
|
9 |
29,646 |
10-27-2018, 04:06 PM |