Commit Graph
100 Commits
Author SHA1 Message Date
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
JailDoctor 40c2b009a9 - [FEAT] A song can lock the audio until finished 2022-12-28 14:07:41 +01:00
JailDoctor 9835f4dc4a - Strip doesn't work on mac, it seems 2022-12-27 22:08:59 +01:00
JailDoctor 0cd5d59b8d - [FIX] Memory corruption bug from SDL_Init() on Mac 2022-12-27 21:49:26 +01:00
JailDoctor 0bbeaadcba Merge branch 'master' of ssh://jaildoctor.duckdns.org:9922/git/mini 2022-12-27 16:36:11 +01:00
JailDoctor c70c27dbb8 -Slight changes for macos 2022-12-27 16:35:34 +01:00
JailDoctor af4ead870b - Removed jail_audio, included chirps 2022-12-27 14:10:00 +01:00
JailDoctor 6cfc6b0438 - v0.9.01
- [NEW] version numbers
- debug() is now an alias of printf
2022-11-02 13:48:53 +01:00
JailDoctor 1a732d7c71 - new debug system 2022-10-28 13:49:08 +02:00
JailDoctor a029771b07 - prnt() now handles accents and spanish characters correctly 2022-10-26 16:28:52 +02:00
JailDoctor 5ebd02ae66 - strlen handles utf8 strings correctly 2022-10-26 16:28:18 +02:00
JailDoctor 0bad4520d8 - optimized compilation for linux added 2022-10-23 12:06:54 +02:00
JailDoctor 7d1ea4b22e - lua should use prnt for onscreen text 2022-10-22 18:22:20 +02:00
JailDoctor 0b989de55f - [FIX] overflow in setpal 2022-10-22 18:22:00 +02:00
JailDoctor 4ff4e6fa78 -Added lua aux libs, changed some function names. To check. 2022-10-20 19:01:01 +02:00
JailDoctor 5c47def659 -consistent color in console 2022-10-17 23:42:58 +02:00
JailDoctor f1c87e4d25 - [NEW] exit()
- [NEW] anykey()
- [NEW] ismusicplaying()
2022-10-13 18:40:41 +02:00
JailDoctor d4ad849add [NEW] Cursor can be hidden from game.ini 2022-10-12 09:08:34 +02:00
JailDoctor b282bd05d5 - File operations work on "data/" folder or ".jrf" file
- [NEW] fopenres() works on .jrf resources, fopen on normal files
2022-10-11 17:58:03 +02:00
JailDoctor a74ca5033c - playmusic() now accepts bool loop as second param 2022-10-07 18:17:11 +02:00
JailDoctor ee3c4325bc [NEW] Audio support:
- playmusic(filename)
- pausemusic()
- resumemusic()
- stopmusic()
2022-10-07 17:46:51 +02:00
JailDoctor 035d82c1ec -loadpal now loads a palette from disk and returns it in a table.
-setpal sets a palette from a table as the current palette.
2022-10-05 18:51:26 +02:00