Typcally, the pages that contain a program's code are marked read-only and executable, and the pages that contain data are writable but non-executable.
why make a primitive UI library limited to XNA
get a load of this deep combat, i feel like i'm making a muppet simulator
Hell yes, wrote a basic assembler that is not very pretty but gets the job done.
prints 2 to the screen and exits!Code:SET 0x0100, 0x0F32 EXT 0x0000
always wanted to control this nds game like a pc fps...
for x=-14, 14, 28 do for y=-14, 14, 28 do local tile = tiles[map.tiles[math.floor((player.y+y)/32)+1][math.floor((player.x+player.sx+x)/32)+1]] if tile.collide then tile.x = math.floor((player.x+player.sx+x)/32)*32 tile.y = math.floor((player.y+y)/32)*32 if aabb(player.x+player.sx-14, player.y-14, 28, 28, tile.x, tile.y, 32, 32) then if player.sx > 0 then player.x = tile.x-14 else player.x = tile.x+46 end player.sx = 0 end end tile = tiles[map.tiles[math.floor((player.y+player.sy+y)/32)+1][math.floor((player.x+x)/32)+1]] if tile.collide then tile.x = math.floor((player.x+x)/32)*32 tile.y = math.floor((player.y+player.sy+y)/32)*32 if aabb(player.x-14, player.y+player.sy-14, 28, 28, tile.x, tile.y, 32, 32) then if player.sy > 0 then player.y = tile.y-14 else player.y = tile.y+46 end player.sy = 0 end end end end
map.tiles contains the map with numbers as tiles
tiles contains the tile data (like image, collide, etc)
I see you're keeping up your traditions of obfuscation
I don't understand component based entity systems, they are somewhat confusing:
Its messyent.getAs(MovementComponent.class).x=2 ent.getAs(CollisionComponent.class).boundingBox=new AABBBox(0,0,20,20)
Started working on a simple gui library for practice to get me back in coding, hopefully i can get it in the state so i can use it in my game
Got window and button creation done, nextup is making the button actually do something
Your Z order is reversed
I really don't get why everyone here always makes window-type UI libraries for games. Wouldn't you usually want something a little more generic, since you're usually going to be making all sorts of health bars, cooldown displays, and other widgets?
Like, I've been tempted to write a C wrapper for GWEN, because it looks really good, but I keep thinking about all the UI stuff I'd like to do that it just wouldn't be suited for. I'd be better off embedding Chromium or writing something like WoW has (but less horrible).
I mean, you could hard-code all that stuff, doing all the layout manually, but you really shouldn't have to.
Writing a good GUI for Aurora would be pain in the ass
Point being implementing a window-based system is better than implementing absolutely fucking everything possible