Commit Graph

59 Commits

Author SHA1 Message Date
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
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
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
663a4af6cb - [NEW] tolocal(x,y) converteix coordenades de pantalla en coordenades de camera 2023-09-11 11:39:14 +02:00
135db2c5e0 -[FIX] Arreglat el bug que feia petar el Cacaus 2023-08-31 23:31:36 +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
88237804f7 - [FIX] Non-turbo mode was buggy 2023-07-28 09:47: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
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
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
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
0e1e74a000 - [NEW] beat() function 2023-01-30 15:51:45 +01:00
c335edee57 - [NEW] mbtnp() added 2023-01-27 19:50:49 +01:00
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
3ac16958b9 - [FIX] Removed unused variable, minor readjustment of code to avoid errors. 2023-01-19 18:24:01 +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
4cf3987dc3 - MacOS Bundle compilation included 2023-01-13 17:50:29 +01:00
2f106bb943 - Allow to change display zoom and fullscreen 2023-01-13 15:50:34 +01:00
5075c65f7e - on "playmusic" remove volume parameter, add loop parameter 2023-01-13 13:19:14 +01:00
ffdc05b061 - Cartelet de boot llevat si no estem en debug
- La musica fa fadeout
2023-01-12 19:39:20 +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
7a574de4b6 -Sync even when not in focus 2022-12-29 21:12:04 +01:00
5ecb7fd139 - Debug i Release 2022-12-28 18:35:09 +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
0cd5d59b8d - [FIX] Memory corruption bug from SDL_Init() on Mac 2022-12-27 21:49:26 +01:00
0bbeaadcba Merge branch 'master' of ssh://jaildoctor.duckdns.org:9922/git/mini 2022-12-27 16:36:11 +01:00
c70c27dbb8 -Slight changes for macos 2022-12-27 16:35:34 +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
a029771b07 - prnt() now handles accents and spanish characters correctly 2022-10-26 16:28:52 +02:00
5c47def659 -consistent color in console 2022-10-17 23:42:58 +02:00
f1c87e4d25 - [NEW] exit()
- [NEW] anykey()
- [NEW] ismusicplaying()
2022-10-13 18:40:41 +02:00
d4ad849add [NEW] Cursor can be hidden from game.ini 2022-10-12 09:08:34 +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
a9f7d46afd [NEW] Now mini reads (GIFs and only GIFs) 2022-10-05 16:50:24 +02:00
c361eef2ff [NEW] feof(), freadw(), fwritew() 2022-10-03 18:52:44 +02:00