Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Hot Soup Processor

Name: Anonymous 2020-05-24 16:40

It's a very popular Japanese programming language still in use today by game developers
Why does it have a silly name?

Name: Anonymous 2020-05-24 17:03

BASIC?
I guess it's fine for shitty visual novels.

Name: Anonymous 2020-05-24 17:14

Name: Anonymous 2020-05-24 17:19

>>3
It's very very cute.

Name: Anonymous 2020-05-24 20:55

/*
Simple Color Code Picker Sample for HSP
by Kpan
*/

#include "user32.as"
#include "gdi32.as"

#define ctype GetRValue(%1) %1 & $FF
#define ctype GetGValue(%1) (%1 >> 8) & $FF
#define ctype GetBValue(%1) (%1 >> 16) & $FF

; main window (Window ID : 0)
screen 0, 130, 50
title "Color Code Picker"

; jump label for WM_CLOSE
onexit gosub *exit

; always window on top
gsel 0, 2

; one-line edit control (Object ID : 0)
pos 50, 15
input value, 70, 20

; get a handle to device context
GetDC 0
hdc_display = stat

repeat
; temporarily stop drawing
redraw 0

color 255, 255, 255
boxf 0, 0, 50, 50

; get rgb color value
GetPixel hdc_display, ginfo(0), ginfo(1)
clr_rgb = stat

color GetRValue(clr_rgb), GetGValue(clr_rgb), GetBValue(clr_rgb)
boxf 10, 10, 40, 40

; update edit control
objprm 0, strf("#%06X", clr_rgb)

; restart drawing
redraw 1

wait 10
loop


*exit
ReleaseDC 0, hdc_display

end

Name: Anonymous 2020-05-25 8:28

HSP is so shit that they had to reimplement elona in lua https://github.com/Ruin0x11/OpenNefia

Name: Anonymous 2020-05-25 9:05

Why does "color" in >>5 not eat what GetPixel hands out?

Name: Anonymous 2020-05-25 10:01

>>5
C/C++ preprocessor

the definition of a cringe.

Name: Anonymous 2020-05-25 23:30

>>6
original worked fine

Name: Anonymous 2020-05-26 15:50

>>9
No

Name: Anonymous 2020-05-27 6:30

>>6
FreeBasic and Gambas are both much faster. Lua is something for ingame scripting.

Name: Doctor Strangelove 2020-05-27 6:32

Mein Fuehrer! I can walk!

http://www.kk.org/thetechnium/gcc.jpg

Don't change these.
Name: Email:
Entire Thread Thread List