Commit Graph

58 Commits

Author SHA1 Message Date
8f98d52385 VERSIÓ 1.0 RC2
- Nova i, espere, definitiva API
2025-05-30 20:16:02 +02:00
b6e5dca277 - [NEW] system.fps() 2025-05-30 17:45:12 +02:00
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
ba1daf810d - [FIX] Hi ha que proveïr de una surface amb tiles al tilemap 2025-02-19 11:19:34 +01:00
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
5306e82897 - Adaptat exemple a la nova API
- [NEW] viewport.resetClipping()
2025-02-19 06:49:56 +01:00
6c9221cd20 - WIP 2025-02-18 14:00:42 +01:00
99a29cf2e0 - Saving progress... 2025-02-18 06:50:37 +01:00
88e406dae0 - Seguim treballant en polir bugs i deixar guapeta la API 2025-02-17 14:01:34 +01:00
29a90f4b46 - Esta tot fet una marranà, en mig de la conversió 2025-02-16 21:48:07 +01:00
40e98737ce - Tota la API canviada. Fent la documentació.
- v1.0 RC1
2025-02-14 14:14:26 +01:00
b56a0c0f71 - [NEW] surfsize(surface) torna el tamany de la surface que se li pasa 2024-11-29 14:33:45 +01:00
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
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
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
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
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
0b6e30c01b - [NEW] funció dir() per a obtindre els arxius del directori "data" 2023-09-11 15:06:05 +02:00
663a4af6cb - [NEW] tolocal(x,y) converteix coordenades de pantalla en coordenades de camera 2023-09-11 11:39:14 +02:00
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
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
4fd9a443f2 - require() implementat 2023-08-04 13:52:11 +02:00
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
dab7a96ec2 Merge branch 'master' of https://gitea.sustancia.synology.me/JailDoctor/mini 2023-07-04 23:12:00 +02:00
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
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
724592ec67 - Added turbo option, to allow waiting for events and use less CPU 2023-06-23 11:22:12 +02:00
38e209fa76 - [NEW] Function "configfolder()" 2023-02-01 19:15:18 +01:00
0e1e74a000 - [NEW] beat() function 2023-01-30 15:51:45 +01:00
c335edee57 - [NEW] mbtnp() added 2023-01-27 19:50:49 +01:00
3675f887a6 - Fixed problem with SDL constants on linux (outdated SDL version, anyways) 2023-01-21 14:45:06 +01:00
b96e80ab1d - [NEW] Gamepad support (not tested)
- [NEW] pad(), padp(), gamepad constants
2023-01-18 18:43:27 +01:00
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
5075c65f7e - on "playmusic" remove volume parameter, add loop parameter 2023-01-13 13:19:14 +01:00
9c24d33782 - Música i só amb SDL_mixer 2023-01-12 19:02:17 +01:00
c7dcf8bb8e - Implementada polifonia en Chirping
- Arreglats un montó de warnings per lo mon
2023-01-09 17:02:04 +01:00
97902594ad - chirp_stop() implemented
- chirps stop playing when ESC or F5
2022-12-28 16:09:11 +01:00
40c2b009a9 - [FEAT] A song can lock the audio until finished 2022-12-28 14:07:41 +01:00
af4ead870b - Removed jail_audio, included chirps 2022-12-27 14:10:00 +01:00
6cfc6b0438 - v0.9.01
- [NEW] version numbers
- debug() is now an alias of printf
2022-11-02 13:48:53 +01:00
1a732d7c71 - new debug system 2022-10-28 13:49:08 +02:00
5ebd02ae66 - strlen handles utf8 strings correctly 2022-10-26 16:28:18 +02:00
0b989de55f - [FIX] overflow in setpal 2022-10-22 18:22:00 +02:00
4ff4e6fa78 -Added lua aux libs, changed some function names. To check. 2022-10-20 19:01:01 +02:00
f1c87e4d25 - [NEW] exit()
- [NEW] anykey()
- [NEW] ismusicplaying()
2022-10-13 18:40:41 +02:00
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
a74ca5033c - playmusic() now accepts bool loop as second param 2022-10-07 18:17:11 +02:00
ee3c4325bc [NEW] Audio support:
- playmusic(filename)
- pausemusic()
- resumemusic()
- stopmusic()
2022-10-07 17:46:51 +02:00
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
8415841c5c -setpal & getpal renamed to setcolor & getcolor
-setcolor & getcolor now use r, g & b instead of uint32
2022-10-05 17:47:58 +02:00