Commit Graph
100 Commits
Author SHA1 Message Date
JailDoctor c7559f0d29 VERSIÓ 1.3.9
- [FIX] el mapa sempre pintava TOTS els tiles, es veren o no. Ara te en compte el oritge i la regió de clipping.
2025-11-05 13:08:56 +01:00
JailDoctor 327453b02c VERSIÓ 1.3.8
- [FIX] Al pintar el mapa usava uint8_t i per tant els mapes de mes de 255 tiles en alguna dimensió no funcionaven be
2025-11-05 09:55:38 +01:00
JailDoctor 62ac5ae92d VERSIÓ 1.3.7
- [NEW] music.enable() i sound.enable()
2025-10-30 16:27:40 +01:00
JailDoctor 4172c6af3d - Ajustat el nombre de versió
- Retocades dos funcions de la llibreria de vscode
2025-10-30 12:35:13 +01:00
JailDoctor 7bff57c6fa - [NEW] mouse.discard() 2025-06-20 13:49:59 +02:00
JailDoctor f154e1a36b - [NEW] Ara mouse.pos() torna les coordenades relatives al origen, no a la finestra. 2025-06-20 12:07:30 +02:00
JailDoctor 0471bcbdda - [FIX] No guardava be els GIFs sense paleta 2025-06-19 17:48:56 +02:00
JailDoctor 76e2925791 - [ONGOING] A meitat de arreglar el bug del guardat de GIFs 2025-06-19 13:56:44 +02:00
JailDoctor 34a56fedcf - [FIX] mouse.pos() donava coordenades reals de finestra, en compte de tindre en compte el zoom. 2025-06-19 12:44:51 +02:00
JailDoctor 9cd991cb44 - [FIX] draw.text() també soporta que li pases un numero pa escriure-lo 2025-06-18 19:52:24 +02:00
JailDoctor e1d5eb051c VERSIÓ 1.3
- [NEW] shader.init(), shader.enable i shader.disable
- [NEW] Deixe els shaders de Lynx i GBC de exemple.
- [NEW] file_getfilebuffer() ara soporta un tercer paràmetre opcional, per a 'zeroterminar' el buffer per si es un arxiu de text.
2025-06-18 19:29:17 +02:00
JailDoctor 79781bbed1 VERSIÓ 1.2.5
- [NEW] Soport bàsic per a shaders.
2025-06-18 13:49:35 +02:00
JailDoctor 0cb1296ad3 VERSIÓ 1.2
- [NEW] Convertit a SDL3
2025-06-18 12:47:24 +02:00
JailDoctor 16be589a72 - VERSIÓ 1.1
- [NEW] map.surf() per a obtindre i fixar la surface que usa el tilemap
- [NEW] Llevats map.new, map.load i map.save. Es fa des de les surfaces.
2025-06-17 13:53:45 +02:00
JailDoctor 2a4195c839 VERSIÓ 1.0.1
- [FIX] view.clip() calculaba mal el ample i el alt de la zona clipada.
- [FIX] view.origin() funcionava al reves.
2025-06-17 11:34:38 +02:00
JailDoctor 5e24117266 - [CHG] Renombrat "stb_vorbis.c" a "stb_vorbis.h"
- [NEW] Afegit lagueirtofile
2025-06-16 13:45:54 +02:00
JailDoctor 88609465cb - [CHG] Renombrat "gif.c" a "gif.h"
- [FIX] El codi de exemple petava
2025-06-16 13:39:50 +02:00
JailDoctor 8f8009e8af - [FIX] Updated 'library.lua' with sys.fps() and sys.clipboard(). 2025-06-04 13:14:59 +02:00
JailDoctor 150cb9f4ff VERSIÓ 1.0 RC4
- [NEW] sys.clipboard() per a llegir i escriure al portapapers.
2025-06-04 11:56:51 +02:00
JailDoctor 4bda9cbd39 VERSIÓ 1.0 RC3
- [FIX] Funció "view.local()" canviada a "view.tolocal()", per a evitar problemes.
- [FIX] Si una surface no s'ha creat, no hi ha res que alliberar.
- [NEW] Afegit log de creació i destrucció de surfaces.
2025-06-03 13:26:11 +02:00
JailDoctor adcc44ddab - [NEW] Augmentat el màxim de textures a 100.
- [NEW] Camp "name" per a les textures.
- [NEW] Si s'intenta carregar un gif que ja està en memòria, se torna el que està en memòria.
2025-06-02 12:30:58 +02:00
JailDoctor 8e855fa2c1 - [FIX] No permetia carregar GIFs de mes de 256 pixels de ample o alt
- [FIX] No tornava be la ruta al arxiu de configuració
- [NEW] Ara guarda en "~/.config/jailgames/loquesiga/"
- [FIX] El mapa de tiles ha de pillar els tiles de la surface source
- [NEW] Actualitzada la llibreria de autocompletar per a vscode
2025-05-31 14:28:20 +02:00
JailDoctor 8f98d52385 VERSIÓ 1.0 RC2
- Nova i, espere, definitiva API
2025-05-30 20:16:02 +02:00
JailDoctor b6e5dca277 - [NEW] system.fps() 2025-05-30 17:45:12 +02:00
JailDoctor 3d14c33971 - [NEW] Proposta de API inclosa al repositori 2025-05-30 13:53:30 +02:00
JailDoctor 61b02fdeef - [FIX] bug en draw.rect i draw.rectFill 2025-02-19 13:44:25 +01:00
JailDoctor 7abc8648a1 - [FIX] cls() no pillava el color de la subpaleta
- [FIX] cosa rara al modificar noms de variables
2025-02-19 13:38:19 +01:00
JailDoctor 2f0817d20c - [CHG] draw.rect i draw.rectFill ara pillen (x,y,w,h), com les persones normals, no (x1,y1,x2,y2) com el subnormal de pico-8 2025-02-19 13:34:55 +01:00
JailDoctor ecb493f9c8 - [CHG] surface.cls(color) ompli del color especificat tota la surface 2025-02-19 12:45:13 +01:00
JailDoctor 9c3baebc1e - [FIX] Les surfaces creades ara s'inicialitzen a tot ceros 2025-02-19 12:01:49 +01:00
JailDoctor 173654e0bd - [FIX] map.draw no agafava be el tamany de la surface 2025-02-19 11:26:07 +01:00
JailDoctor ba1daf810d - [FIX] Hi ha que proveïr de una surface amb tiles al tilemap 2025-02-19 11:19:34 +01:00
JailDoctor 45d31579d2 - [NEW] tilemap.new(x,y)
- [CHG] tilemap.new i tilemap.load alliberen la surface anterior (si hi havia) del mapa
2025-02-19 10:40:14 +01:00
JailDoctor 5306e82897 - Adaptat exemple a la nova API
- [NEW] viewport.resetClipping()
2025-02-19 06:49:56 +01:00
JailDoctor 6c9221cd20 - WIP 2025-02-18 14:00:42 +01:00
JailDoctor 99a29cf2e0 - Saving progress... 2025-02-18 06:50:37 +01:00
JailDoctor 88e406dae0 - Seguim treballant en polir bugs i deixar guapeta la API 2025-02-17 14:01:34 +01:00
JailDoctor 29a90f4b46 - Esta tot fet una marranà, en mig de la conversió 2025-02-16 21:48:07 +01:00
JailDoctor 40e98737ce - Tota la API canviada. Fent la documentació.
- v1.0 RC1
2025-02-14 14:14:26 +01:00
JailDoctor b56a0c0f71 - [NEW] surfsize(surface) torna el tamany de la surface que se li pasa 2024-11-29 14:33:45 +01:00
JailDoctor e36caf566c - [DEPRECATED] camera()
- [DEPRECATED] view()
- [FIX] la regió de clip ara es calcula sempre ajustada a la surface de destí, siga la que siga encara que es canvie
2024-11-28 17:04:35 +01:00
JailDoctor c07e09cebd - [FIX] Aplicat un fix de JailAudio 2024-11-27 13:33:52 +01:00
JailDoctor 802f32f1b8 v0.9.97d
- Ara mini usa Respak2
2024-11-26 16:15:31 +01:00
JailDoctor 377f0a238b v0.9.96d
- [NEW] Ara mini ja no requereix SDL_mixer, usa JailAudio
2024-11-26 14:40:49 +01:00
JailDoctor 916a24230e - Treballant en el canvi a JailAudio 2024-11-25 14:20:51 +01:00
JailDoctor cddd79f05e - [NEW] res() without arguments returns width and height of window.
- [NEW] camera() without arguments returns 'x' and 'y' of camera.
- [NEW] palcolor() to set or get a color from the palette (replaces setcolor() & getcolor() ).
- [NEW] paltrans() to set or get which color index is transparent (replaces settrans() & gettrans() ).
- [RENAME] sspr() to blit(), spr_r() to blit_r()
- [NEW] mouse() returns both x and y mouse coordinates.
- [DEPRECATED] setcolor(), getcolor(), settrans(), gettrans(), spr(), sspr(), spr_r(), mousex(), mousey(), abs(), ceil(), flr(), sgn(), sin(), cos(), atan2(), sqrt(), max(), mid(), min(), tostr(), ascii(), strlen(), fopen(), fopenres(), fclose(), feof(), fwritei(), fwrited(), fwrites(), fwritew(), fwriteb(), fwriteln(), freadi(), freadd(), freads(), freadw(), freadb()
- [FIX] Now the background on resizable windows  is filled with black instead of garbage.
- [FIX] Compiling on Linux uses POSIX functions.
2024-02-15 13:54:17 +01:00
JailDoctor 4b6a9d8188 - [NEW] stopmusic() accepta com a paràmetre els milisegons que tardarà en fadechar out (per defecte 1000ms).
- [NEW] musicpos() per a obtindre o especificar la posició de la música.
2024-02-14 14:11:45 +01:00
JailDoctor 9e08a693c7 - [FIX] Ara les coordinades del ratolí son lo que toca respecte al joc, no al tamany real de la finestra 2024-02-13 13:20:07 +01:00
JailDoctor 8618e922c8 - [NEW] spr_r per a rotar sprites (retalla cantos)
- [NEW] sspr admet un nou paràmetre "invert", per a invertir la x i la y.
2024-02-07 14:20:12 +01:00
JailDoctor 63eaaa857e - Es pot canviar la resolució des del programa abm res(w,h)
- La finestra es resizable
- Es permet arrancar des d'un arxiu .lua passat com a paràmetre.
2023-11-28 19:03:13 +01:00
JailDoctor 7569c24d04 Updatat nombre versió 2023-10-09 11:48:14 +02:00
JailDoctor b29c6c873d - La tecla de parar passa a ser F12 (en compte de F1).
- [FIX] Ja no intentem recuperar la posició de la finestra. Ara reapareix centrada.
- [NEW] Si s'intenta ficar un zoom menor de 1, es corregeix a 1.
- [NEW] Si s'intenta ficar un zoom major que el tamany de la pantalla, redueix el zoom fins a un correcte.
2023-10-09 11:45:42 +02:00
JailDoctor 1fe151ee1e - La tecla de parar passa a ser F12 (en compte de F1).
- [FIX] Ja no intentem recuperar la posició de la finestra. Ara reapareix centrada.
- [NEW] Si s'intenta ficar un zoom menor de 1, es corregeix a 1.
- [NEW] Si s'intenta ficar un zoom major que el tamany de la pantalla, redueix el zoom fins a un correcte.
2023-10-09 11:29:17 +02:00
JailDoctor 0b6e30c01b - [NEW] funció dir() per a obtindre els arxius del directori "data" 2023-09-11 15:06:05 +02:00
JailDoctor 663a4af6cb - [NEW] tolocal(x,y) converteix coordenades de pantalla en coordenades de camera 2023-09-11 11:39:14 +02:00
JailDoctor d1f13a0036 - [NEW] Afegit missatge descriptiu si no es troba un require 2023-08-31 23:41:07 +02:00
JailDoctor 135db2c5e0 -[FIX] Arreglat el bug que feia petar el Cacaus 2023-08-31 23:31:36 +02:00
JailDoctor d16f0fef07 - Reactivat relleno de patró (fillp)
- [New] bcolor() per a especificar el color de fons del patró, si no es transparent.
- [New] subpal() per a fer intercanvis de color de la paleta
2023-08-04 16:26:57 +02:00
JailDoctor 040697fcbd -Secció "files" del game.ini obsoleta. Ara sempre obri "main.lua". Els demes arxius s'inclouen amb "require()" 2023-08-04 14:06:10 +02:00
JailDoctor 4fd9a443f2 - require() implementat 2023-08-04 13:52:11 +02:00
JailDoctor 88237804f7 - [FIX] Non-turbo mode was buggy 2023-07-28 09:47:11 +02:00
JailDoctor 9b99aa23cf MINI v.0.9.64d:
- [NEW] origin(x,y) sets the origin of the coordinate system.
- [FIX] false extern declaration removed.
- MINI_VERSION has its own header file.
2023-07-05 07:58:31 +02:00
JailDoctor dab7a96ec2 Merge branch 'master' of https://gitea.sustancia.synology.me/JailDoctor/mini 2023-07-04 23:12:00 +02:00
JailDoctor 584b65041c - [NEW] view(x,y,w,h) Creates a clipped viewport that also translates origin.
-[NEW] view() Resets the viewport to all the window.
2023-07-04 23:03:19 +02:00
JailDoctor 0a92e29aa3 -[NEW] Window refreshes at the position it was
-[FIX] Window slightly moved after refresh. Probably only fixed on MY Linux.
2023-07-04 22:53:34 +02:00
JailDoctor 58f4845746 - [FIX] clip(x,y,w,h) works as expected.
- [NEW] clip() with no arguments resets clipping region.
- [FIX] cls() respects clipping region (but now it's slower)
- [FIX] pset's and pget now respect clipping region correctly
2023-07-04 19:50:13 +02:00
JailDoctor 724592ec67 - Added turbo option, to allow waiting for events and use less CPU 2023-06-23 11:22:12 +02:00
JailDoctor 38e209fa76 - [NEW] Function "configfolder()" 2023-02-01 19:15:18 +01:00
JailDoctor f457075c49 - btnp() i padp() consumeixen la tecla polsada si es la que arriba com a paràmetre
- anykey() tambe mira si s'ha pulsat algun botó del pad
- anykey() consumeix qualsevol tecla o botó del pad pulsats.
2023-01-31 19:47:52 +01:00
JailDoctor 0e1e74a000 - [NEW] beat() function 2023-01-30 15:51:45 +01:00
JailDoctor c335edee57 - [NEW] mbtnp() added 2023-01-27 19:50:49 +01:00
JailDoctor 5e4f0559c4 - [FIX] Crash if map() used without map surface assigned
- [FIX] Crash on restart, system surfaces not finalized properly (Cacaus crash maybe solved?)
2023-01-27 17:15:03 +01:00
JailDoctor 3675f887a6 - Fixed problem with SDL constants on linux (outdated SDL version, anyways) 2023-01-21 14:45:06 +01:00
JailDoctor a03053b717 - Minor changes for macos build 2023-01-21 14:08:24 +01:00
JailDoctor 3565c02636 - c++11 mode for macos compilation 2023-01-21 14:07:47 +01:00
JailDoctor ff1ca6279d - Icon added to Windows compilation 2023-01-20 19:13:55 +01:00
JailDoctor 3ac16958b9 - [FIX] Removed unused variable, minor readjustment of code to avoid errors. 2023-01-19 18:24:01 +01:00
JailDoctor 618cc83c8e - Removed stray 'stb_vorbis.c'. 2023-01-18 18:46:29 +01:00
JailDoctor b96e80ab1d - [NEW] Gamepad support (not tested)
- [NEW] pad(), padp(), gamepad constants
2023-01-18 18:43:27 +01:00
JailDoctor e53befb700 - [NEW] configuration file working.
- [NEW] zoom(), fullscreen(), cursor(), getconf(), setconf().
- [CHG] now zoom and fullscreen are controlled by the game, not by mini.
- [FIX] quit() now actually quits.
- [NEW] btnp() without parameters returns key pressed.
- [NEW] zoom, fullscreen and cursor are saved to config automatically.
2023-01-18 17:41:57 +01:00
JailDoctor 4c0cf979d3 - [WIP] Config files 2023-01-17 20:04:01 +01:00
JailDoctor 4cf3987dc3 - MacOS Bundle compilation included 2023-01-13 17:50:29 +01:00
JailDoctor a42641653f - Remove last remnants of JailAudio 2023-01-13 15:51:00 +01:00
JailDoctor 2f106bb943 - Allow to change display zoom and fullscreen 2023-01-13 15:50:34 +01:00
JailDoctor 5075c65f7e - on "playmusic" remove volume parameter, add loop parameter 2023-01-13 13:19:14 +01:00
JailDoctor bcb58d49a0 - Release version should not show console 2023-01-13 12:42:56 +01:00
JailDoctor ffdc05b061 - Cartelet de boot llevat si no estem en debug
- La musica fa fadeout
2023-01-12 19:39:20 +01:00
JailDoctor 9c24d33782 - Música i só amb SDL_mixer 2023-01-12 19:02:17 +01:00
JailDoctor 7ecd11a169 - [WIP] Migrating to jail_audio 2023-01-11 18:58:15 +01:00
JailDoctor e388d046b2 - [WIP] Implementing instruments (envelopes) for Chirping 2023-01-10 20:03:52 +01:00
JailDoctor 256f4a2d04 - Now labels must include its number 2023-01-10 18:55:36 +01:00
JailDoctor 3fed72a19b - [WIP] Repetitive sections in chirps 2023-01-09 20:03:23 +01:00
JailDoctor c577755c3b - Makefile added, batch files removed 2023-01-09 17:35:48 +01:00
JailDoctor 4205bdfe90 - [FIX] [Chirping] Silence crashes app 2023-01-09 17:35:33 +01:00
JailDoctor c7dcf8bb8e - Implementada polifonia en Chirping
- Arreglats un montó de warnings per lo mon
2023-01-09 17:02:04 +01:00
JailDoctor bfcd7e62cf - Several waveforms to choose for chirps 2023-01-09 08:39:39 +01:00
JailDoctor 7a574de4b6 -Sync even when not in focus 2022-12-29 21:12:04 +01:00
JailDoctor 1731b4cb03 - Loop on chirps implemented 2022-12-29 12:22:53 +01:00
JailDoctor 5ecb7fd139 - Debug i Release 2022-12-28 18:35:09 +01:00
JailDoctor 97902594ad - chirp_stop() implemented
- chirps stop playing when ESC or F5
2022-12-28 16:09:11 +01:00