Pyra Non-port game idea suggestions.


ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
8,678
Age
47
Location
France, near Lyon
Quick question, I hear filepaths are different on Windows and Linux. Best way to account for this? I'm currently programming and testing on a Windows laptop, but I wanna make sure my code is Linux compatible for you guys and for when I finally get a Pyra. I noticed SDL2 does have an SDL_GetPlatform function, so at least I know how to detect the platform and call appropriate code accordingly.

Knowing my luck, I bet there's a bunch of other stuff to account for that I'm not even aware of yet.
Use relative path, and use '/' as seprator and you should be good.

Or use physfs or some other lib to abstract file access.
 

JDTAY

Half Pepperoni, All Cheese
Joined
Sep 15, 2015
Messages
898
Age
33
Location
North Carolina, USA
Another question, should I be concerned about this "endianness" thing?
SDL2 handles a lot of other platform stuff, maybe it'll handle that for me?
*holds breath*
 

Letalis Sonus

Advanced Member
Joined
Mar 5, 2009
Messages
1,359
Endianess is architecture bound, x86 is little endian only and while ARM also supports big endian the standard is to use little endian as well (armel). It only matters if you either get your data from somewhere else (like a file or a network packet of which you know that it might use a different endianess) or if you want to directly access a certain single byte of a larger variable. Unless you want to support some more exotic systems it's pretty sane to just assume little endian, you only need to be careful about network protocols - the IP protocol is big endian. System or 3rd party libraries for network connections usually already include functions to swap the endianess of a variable, there are even compiler-specific endianess-swapping commands for directly using specialized CPU commands that will do the swapping in a single step. You could simply use a preprocessor macro to do all this yourself, the compiler ought to be smart enough to recognize what you're trying to do. Handling endianess is rather trivial if you only need to care about big and little endian.

Concerning network code: Keep in mind that Windows handles network sockets differently, on unixoid systems there's no big difference between a network socket and a file descriptor, so you can just use standard C functions for file access like read() and write() on network sockets while Windows requires you to use more specialized functions like recv() and send(). Simply using the latter instead makes it more portable, but you still need to take care about closing it correctly - Windows has a Windows-specific closesocket() function while Unix simply uses close() like on a file.
 

JDTAY

Half Pepperoni, All Cheese
Joined
Sep 15, 2015
Messages
898
Age
33
Location
North Carolina, USA
Hey guys, got rendering and random enemy placement nearly done.
sbscreen.png
As of now though, there's nothing ensuring enemies don't spawn on top of each other. I'll do that next.
 

JDTAY

Half Pepperoni, All Cheese
Joined
Sep 15, 2015
Messages
898
Age
33
Location
North Carolina, USA
Worked on making the player sprites more expressive.
sbchars.png

FBnil's probably right though, I should finish the code then ask someone to do graphics for me.
 

FBnil

Waiting to Champion the Pyra to the World...
Joined
Dec 14, 2012
Messages
3,314
Location
Yurp
How are you doing sprite to sprite collision? Base block? Pixel-Perfect E.T. like?

I like the new sprites, look more charlie-brown-eske


detailed.png Later on you can retouch it....
 

kuru

Laptop und Trachtenjanker
Joined
Oct 8, 2008
Messages
2,933
Location
the mockracy
I've been looking for a new anime series for a while. Found one of which the description sounded great. Watched the first episode from start to finish. Saw plenty cleavage shots and heard even more verbal references to breasts. Stopped watching that series altogether. Felt better.
 

FBnil

Waiting to Champion the Pyra to the World...
Joined
Dec 14, 2012
Messages
3,314
Location
Yurp
Stopped watching that series altogether.
Yeah, I also have that feeling that the plot and slapstick quality is getting lower while fanservices increases and increases. Good ones are rare. Have you seen DBZ Abridged?
Oldies you might like: Scrapped Princess. Steamboy.

I'm a fan of fanfiction. Convert them to audio and listen to them while commuting. Very good unknown writers out there.
 

levi

Still fresh, damnit!
Joined
Oct 6, 2008
Messages
12,587
Location
Somewhere off the coast of the EU
FBnil, probably base block. There are going to be lots of sprites on screen.
FWIW, the standard with more common scrolling shooters with only one, two or three fire buttons has evolved to work on a hit box that's significantly smaller than the on-screen sprite. I'm not sure what Robotron 2084 used (and don't have it set up on anything currently to test) but I get the feeling that in the same way sneaking impossibly between two bullets in a scrolling shooter, sneaking between two encroaching robots when there's technically not enough space for your sprite to fit through, yet still making it could be exhilarating.

Either way, try to code it so it can be adjusted and playtested once you've got player and enemy movement in.
 

ible

professional vim user
Joined
Mar 24, 2014
Messages
2,357
Location
Seattle, WA
what is "base block"?

i have sprite collisions in my game-editor/player, which just consider sprites that are being drawn on the same line. (this is actually convenient, since the bitbox has low ram, so you draw things line by line, so you need to keep track of things well, i.e. sprites sorted by y-position.)
 

JDTAY

Half Pepperoni, All Cheese
Joined
Sep 15, 2015
Messages
898
Age
33
Location
North Carolina, USA
Oh, is that what base block means? >_>

Yeah, I want a smaller than 20 by 20 hitbox. I was planning on slightly smaller than the size of the actual sprite, I guess like 6 by 19? Very small could be good too like you said though. Hmmm...
 

JDTAY

Half Pepperoni, All Cheese
Joined
Sep 15, 2015
Messages
898
Age
33
Location
North Carolina, USA
Sorry that I haven't done anything related to this project in a few days, I've been trying out games from the Humble Freedom Bundle, among other things.

Plus, I like coming up with ideas more than implementing them. Bad habit. Just today I was thinking about PICO-8 and how it's programmed with SDL just like I use, and I was thinking that maybe I could make my own virtual video game console. And then I was thinking I could make it use a custom Z80 style assembly language, but give it a bit width of 10 just for kicks. Yeah, I'm a masochist. >_>
 

JDTAY

Half Pepperoni, All Cheese
Joined
Sep 15, 2015
Messages
898
Age
33
Location
North Carolina, USA
Hey guys, I picked out a 15 color plus transparency palette for a fantasy console I'm designing (not the ten bit ASM one I mentioned), and I might make this game for said fantasy console. PICO-8 seems to really move those PocketCHIPs, so Pyra should have something similar. Lemme know what you think of these colors.

palexmpl.png
sbchars.png
 

ashdjones

o_O
Joined
Mar 13, 2008
Messages
821
Don't have any playing experience with Robotron, but there are some very thorough descriptions of the game on the web from what I can see. I could try putting my own spin on it.
It mostly depends on how offensive you guys think the second one is. >_>
I don't like that you refer to breasts as a person. I'm my breasts? But breasts are still amazing, so how about...

Breasts And Bots

You know. Like Ghosts & Goblins?
 
Top